Skip to content

Commit 9a65a33

Browse files
committed
Removed debug mode, fixed missing check
1 parent 4f9de03 commit 9a65a33

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

phpmyfaq/inc/Bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
// - false debug mode disabled
2727
// - true debug mode enabled
2828
//
29-
define('DEBUG', true);
29+
define('DEBUG', false);
3030
if (DEBUG) {
3131
ini_set('display_errors', 1);
3232
ini_set('display_startup_errors', 1);

phpmyfaq/inc/PMF/Helper/Category.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ public function renderOptions($categoryId)
283283
'category_lang' => '',
284284
),
285285
);
286+
} elseif (isset($categoryId['category_id'])) {
287+
$categoryId = array($categoryId);
286288
}
287289

288290
$i = 0;

0 commit comments

Comments
 (0)