Fatal error: Call to a member function getCode() on a non-object in /var/www/oncourse-magento/app/code/local/Ocl/Partner/Model/Observer.php on line 68