if($objproject) or if(isset($objproject)
Fri, 06/17/2011 - 08:56
Hello,
After reinstalling the servers in my company and moved from PHP5.2 to the php5.3 I have a problems with my applications qCubed..
If I did before:
$ objProject = Project:: Load (2);
if ($ objProject ).....
Now I have to do this:
$ objProject = Project:: Load (2);
if (isset ($ objProject )).....
Otherwise I have an error message:
Trying to get property of non-object
Error Type: E_NOTICE
I guess it's a mistake to a php configuration.
Do qu'elqu'un an idea?
Thanks.

I found moving from 5.2 to 5.3 quite difficult actually. There are some tiny but significant differences.
Anyway, in this case you should check whether you report E_NOTICE in the php.ini. Error reporting should look like this:
error_reporting = E_ALL & ~E_NOTICE
Cheers
Helge