mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
getImage() returns null if no image exists
This commit is contained in:
parent
4322b97fe2
commit
822a07485c
|
@ -1110,7 +1110,8 @@ class SeedDMS_Core_User { /* {{{ */
|
||||||
/**
|
/**
|
||||||
* Get the image from the users profile
|
* Get the image from the users profile
|
||||||
*
|
*
|
||||||
* @return array|bool image data
|
* @return string|null|bool image data as a string or null if no image is set or
|
||||||
|
* false in case of an error
|
||||||
*/
|
*/
|
||||||
function getImage() { /* {{{ */
|
function getImage() { /* {{{ */
|
||||||
$db = $this->_dms->getDB();
|
$db = $this->_dms->getDB();
|
||||||
|
@ -1121,8 +1122,9 @@ class SeedDMS_Core_User { /* {{{ */
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if($resArr)
|
if($resArr)
|
||||||
$resArr = $resArr[0];
|
return $resArr[0];
|
||||||
return $resArr;
|
else
|
||||||
|
return null;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user