Browse Source

changed result to row by get_pm

added return false if ``aauth_error_no_pm`` appears
develop
Raphael Jackstadt 10 years ago
parent
commit
12a76b1659
  1. 3
      application/libraries/Aauth.php

3
application/libraries/Aauth.php

@ -1720,11 +1720,12 @@ class Aauth {
if ($query->num_rows() < 1) { if ($query->num_rows() < 1) {
$this->error( $this->CI->lang->line('aauth_error_no_pm') ); $this->error( $this->CI->lang->line('aauth_error_no_pm') );
return FALSE;
} }
if ($set_as_read) $this->set_as_read_pm($pm_id); if ($set_as_read) $this->set_as_read_pm($pm_id);
return $query->result(); return $query->row();
} }
//tested //tested

Loading…
Cancel
Save