correction bug 5881, was not possible to import a proces, now you can do it
This commit is contained in:
@@ -771,11 +771,11 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // Event
|
} // Event
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user