[+] добавлен пользователь СИСТЕМА для новых плат
This commit is contained in:
1 parent
c7dc3d0434
commit
9c029c5b11
3 files changed
+9
-4
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user