aboutsummaryrefslogtreecommitdiffstats
path: root/admin/post/insert.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-03-06 14:00:33 +0100
committerThomas Lange <code@nerdmind.de>2017-03-06 14:00:33 +0100
commit6bcdaa8ed6d45d8c852bf2d2e37b07446861c94b (patch)
tree7d93fa4750075d6faa3a405410cd74fa8ced4007 /admin/post/insert.php
parent04e13d6cb15d8dbcc9e68f135a40df123074d3ea (diff)
downloadblog-6bcdaa8ed6d45d8c852bf2d2e37b07446861c94b.tar.gz
blog-6bcdaa8ed6d45d8c852bf2d2e37b07446861c94b.tar.xz
blog-6bcdaa8ed6d45d8c852bf2d2e37b07446861c94b.zip
Hardcoded PDO class name replaced with $Database class.
Diffstat (limited to 'admin/post/insert.php')
-rw-r--r--admin/post/insert.php2
1 files changed, 1 insertions, 1 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'),