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,7 +771,7 @@ class Event extends BaseEvent {
function Exists ( $sUid ) { function Exists ( $sUid ) {
try { try {
$oObj = EventPeer::retrieveByPk($sUid); $oObj = EventPeer::retrieveByPk($sUid);
return (get_class($oObj) == 'Event'); return (is_object($oObj) && get_class($oObj) == 'Event');
} }
catch (Exception $oError) { catch (Exception $oError) {
throw($oError); throw($oError);