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

@@ -87,7 +87,7 @@ class ProcessUser extends BaseProcessUser {
function Exists ( $sUid ) {
try {
$oObj = ProcessUserPeer::retrieveByPk($sUid);
return (get_class($oObj) == 'ProcessUser');
return (is_object($oObj) && get_class($oObj) == 'ProcessUser');
}
catch (Exception $oError) {
throw($oError);