summaryrefslogtreecommitdiffstats
path: root/application/models/Muser.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-09-21 11:32:10 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-09-21 13:53:02 +0200
commit3d38163a81ce1e5921be690348b30a2f6db62837 (patch)
tree9f59debf7b6f18e9a56febdad0fef54eb59e85f4 /application/models/Muser.php
parentab58703f61b1d0573444e357840d38533fb1ee85 (diff)
Fix return checks for CI3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/Muser.php')
-rw-r--r--application/models/Muser.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/models/Muser.php b/application/models/Muser.php
index 00d14b7b9..72bcffde0 100644
--- a/application/models/Muser.php
+++ b/application/models/Muser.php
@@ -324,6 +324,10 @@ class Muser extends CI_Model {
->where('user', $userid)
->get()->row_array();
+ if ($query === null) {
+ $query = [];
+ }
+
$extra_fields = array(
"username" => $this->get_username(),
"email" => $this->get_email($userid),