Permalink
Browse files

replace num_rows with fetch_array

  • Loading branch information...
1 parent 71d46c5 commit 7cabab6e16eadba2e6fdc4d8377a8a2dcc82bc8c @JohnDoh committed Jul 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/rcube_sauserprefs_storage.php
@@ -200,7 +200,7 @@ function whitelist_add($emails)
sauserprefs::map_pref_name('whitelist_from'),
$email);
- if ($this->db->num_rows($sql_result) == 0)
+ if (!$this->db->fetch_array($sql_result))
$this->db->query(
"INSERT INTO ". $this->table_name.
" (". $this->username_field.

0 comments on commit 7cabab6

Please sign in to comment.