[+] добавлен пользователь СИСТЕМА для новых плат

This commit is contained in:
rsgrinko committed 2021-12-17 14:58:32 +03:00
1 parent c7dc3d0434
commit 9c029c5b11
3 files changed
+9 -4

No files matched your search

+3 -3
View File
@@ -61,15 +61,15 @@ class CUser {
* @param int $id
* @return array|bool
*/
public static function getFields($id = ''){
if(empty($id) or $id == ''){
public static function getFields($id = false){
if(empty($id) or $id === false){
$id = self::$id;
}
if(is_array($id)){
$where = $id;
} else {
$where = array('id'=>$id);
$where = array('id' => $id);
}
$result = self::$DB->getItem(self::$table, $where);
if($result) {