summaryrefslogtreecommitdiff
path: root/includes/pages/admin_questions.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-10-04 16:50:06 +0200
committermsquare <msquare@notrademark.de>2016-10-04 16:50:06 +0200
commiteec10ebfc5c14ab9b72d3b81b7d44a2e507f5473 (patch)
tree9cb1a879919b93f832796cb449229ec9a54e9ac0 /includes/pages/admin_questions.php
parent455e41720068740c523bfc4b15cf30e3811e4281 (diff)
reduce complexity of user angeltypes controller
Diffstat (limited to 'includes/pages/admin_questions.php')
-rw-r--r--includes/pages/admin_questions.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php
index 8e7507da..8c16255c 100644
--- a/includes/pages/admin_questions.php
+++ b/includes/pages/admin_questions.php
@@ -26,9 +26,6 @@ function admin_questions() {
$questions = sql_select("SELECT * FROM `Questions` WHERE `AID` IS NULL");
foreach ($questions as $question) {
$user_source = User($question['UID']);
- if ($user_source === false) {
- engelsystem_error("Unable to load user.");
- }
$unanswered_questions_table[] = [
'from' => User_Nick_render($user_source),
@@ -45,14 +42,7 @@ function admin_questions() {
$questions = sql_select("SELECT * FROM `Questions` WHERE NOT `AID` IS NULL");
foreach ($questions as $question) {
$user_source = User($question['UID']);
- if ($user_source === false) {
- engelsystem_error("Unable to load user.");
- }
-
$answer_user_source = User($question['AID']);
- if ($answer_user_source === false) {
- engelsystem_error("Unable to load user.");
- }
$answered_questions_table[] = [
'from' => User_Nick_render($user_source),
'question' => str_replace("\n", "<br />", $question['Question']),