mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-18 12:48:41 +00:00
Fix get obj class name
This commit is contained in:
parent
9c4596d08e
commit
6289761103
|
|
@ -347,7 +347,7 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
self::extend(__CLASS__);
|
||||
|
||||
if ($obj === null ||
|
||||
(is_object($obj) && strpos($className = $obj, '\Null') !== false)
|
||||
(is_object($obj) && strpos($className = get_class($obj), '\Null') !== false)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user