diff options
Diffstat (limited to 'admin/post')
-rw-r--r-- | admin/post/insert.php | 2 | ||||
-rw-r--r-- | admin/post/update.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/post/insert.php b/admin/post/insert.php index ab6bb87..baeacd3 100644 --- a/admin/post/insert.php +++ b/admin/post/insert.php @@ -42,7 +42,7 @@ if(HTTP::issetPOST('id', 'user', 'slug', 'name', 'body', 'time_insert', 'time_up try { $userIDs = $Database->query(sprintf('SELECT id FROM %s ORDER BY fullname ASC', User\Attribute::TABLE)); - foreach($userIDs->fetchAll(PDO::FETCH_COLUMN) as $userID) { + foreach($userIDs->fetchAll($Database::FETCH_COLUMN) as $userID) { $User = User\Factory::build($userID); $userAttributes[] = [ 'ID' => $User->attr('id'), diff --git a/admin/post/update.php b/admin/post/update.php index 875d947..65b9045 100644 --- a/admin/post/update.php +++ b/admin/post/update.php @@ -44,7 +44,7 @@ try { try { $userIDs = $Database->query(sprintf('SELECT id FROM %s ORDER BY fullname ASC', User\Attribute::TABLE)); - foreach($userIDs->fetchAll(PDO::FETCH_COLUMN) as $userID) { + foreach($userIDs->fetchAll($Database::FETCH_COLUMN) as $userID) { $User = User\Factory::build($userID); $userAttributes[] = [ 'ID' => $User->attr('id'), |