This commit is contained in:
Krivchikov Dmitry 2016-01-20 13:54:25 +03:00
parent f46a263ffa
commit 623ae27d2c
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class Category extends Model
if (App::$user && App::$user->isAdmin == 1) { if (App::$user && App::$user->isAdmin == 1) {
return $this->getAll(array('order' => 'ord ASC', 'asArray' => true)); return $this->getAll(array('order' => 'ord ASC', 'asArray' => true));
} else { } else {
return $this->getAll(array('where' => '`id` NOT IN ('. implode(',', $this->paidIds).')', 'order' => 'ord ASC', 'asArray' => true)); return $this->getAll(array('where' => '`id` NOT IN ('. implode(',', self::$paidIds).')', 'order' => 'ord ASC', 'asArray' => true));
} }
} }