From 12a76b1659984fb72b78113081dee1519fc5cfb5 Mon Sep 17 00:00:00 2001 From: Raphael Jackstadt Date: Fri, 24 Jul 2015 13:40:18 +0200 Subject: [PATCH] changed result to row by get_pm added return false if ``aauth_error_no_pm`` appears --- application/libraries/Aauth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index 2a366f5..d8d6358 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -1720,11 +1720,12 @@ class Aauth { if ($query->num_rows() < 1) { $this->error( $this->CI->lang->line('aauth_error_no_pm') ); + return FALSE; } if ($set_as_read) $this->set_as_read_pm($pm_id); - return $query->result(); + return $query->row(); } //tested