Added is_object()

This commit is contained in:
abraar
2010-12-06 15:13:43 +00:00
parent cec620ff6b
commit 9e5a057c6c
29 changed files with 50 additions and 49 deletions

View File

@@ -20,7 +20,7 @@ class UsersProperties extends BaseUsersProperties {
$oUserProperty = UsersPropertiesPeer::retrieveByPk($sUserUID);
var_dump($oUserProperty);
var_dump($sUserUID);
if (get_class($oUserProperty) == 'UsersProperties' && $oUserProperty != '') {
if (is_object($oUserProperty) && get_class($oUserProperty) == 'UsersProperties') {
echo"inside";
return true;
}