ghurty Posted January 28, 2010 Share Posted January 28, 2010 Why would I be getting a Parse error: syntax error, unexpected T_OBJECT_OPERATOR on the first line of this code? if(!empty($_GET['designModeToken']) && getClass('ISC_ADMIN_AUTH')->isDesignModeAuthenticated($_GET['designModeToken'])) { isc_setCookie('designModeToken', $_GET['designModeToken'], 0, true); ob_end_clean(); header('Location: '.getConfig('ShopPathNormal')); exit; } Link to comment https://forums.phpfreaks.com/topic/190077-why-getting-parse-error-syntax-error-unexpected-t_object_operator/ Share on other sites More sharing options...
trq Posted January 28, 2010 Share Posted January 28, 2010 Because the getClass function doesn't return an object. Link to comment https://forums.phpfreaks.com/topic/190077-why-getting-parse-error-syntax-error-unexpected-t_object_operator/#findComment-1002862 Share on other sites More sharing options...
Alex Posted January 28, 2010 Share Posted January 28, 2010 What version of PHP are you running? That syntax isn't valid below PHP 5. Link to comment https://forums.phpfreaks.com/topic/190077-why-getting-parse-error-syntax-error-unexpected-t_object_operator/#findComment-1002864 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.