correction bug 5881, was not possible to import a proces, now you can do it

This commit is contained in:
Carlos Pacha
2011-01-18 15:14:07 +00:00
parent 4307f52c62
commit bda341af63

View File

@@ -771,11 +771,11 @@ class Event extends BaseEvent {
function Exists ( $sUid ) {
try {
$oObj = EventPeer::retrieveByPk($sUid);
return (get_class($oObj) == 'Event');
return (is_object($oObj) && get_class($oObj) == 'Event');
}
catch (Exception $oError) {
throw($oError);
}
}
} // Event
?>
?>