Replaced eregi() with preg_match() and get_class() for thirdparty

This commit is contained in:
abraar
2010-12-10 14:09:28 +00:00
parent 016eeae8a2
commit 96abdb996a
20 changed files with 50 additions and 51 deletions

View File

@@ -104,7 +104,7 @@ class AppMessage extends BaseAppMessage {
if(isset($aData['app_msg_uid'])) {
$o = EmployeePeer::retrieveByPk($aData['app_msg_uid']);
}
if (isset($o) && get_class($o) == 'AppMessage') {
if (isset($o) && is_object($o)&& get_class($o) == 'AppMessage') {
$o->fromArray($aData, BasePeer::TYPE_FIELDNAME);
$o->setAppMsgDate(date('Y-m-d H:i:s'));
$o->save();

View File

@@ -18,8 +18,6 @@ class UsersProperties extends BaseUsersProperties {
function UserPropertyExists($sUserUID) {
try {
$oUserProperty = UsersPropertiesPeer::retrieveByPk($sUserUID);
var_dump($oUserProperty);
var_dump($sUserUID);
if (is_object($oUserProperty) && get_class($oUserProperty) == 'UsersProperties') {
echo"inside";
return true;