From 3647151c6795f16c35dbb2c85395dcaae9a7eefb Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Fri, 9 Mar 2018 12:59:26 -0500 Subject: [PATCH] Fix #225: call fetchAll on PDO statement --- roundcube/class/m_roundcube.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundcube/class/m_roundcube.php b/roundcube/class/m_roundcube.php index 2d17734c..6626b6d3 100644 --- a/roundcube/class/m_roundcube.php +++ b/roundcube/class/m_roundcube.php @@ -101,7 +101,7 @@ class m_roundcube { $req=$stmt->execute(array($fullmail)); if ($req) { - foreach ( $req->fetchAll() as $t ) { + foreach ( $stmt->fetchAll() as $t ) { if (empty($t['user_id'])) continue ; $rcuser_id=$t['user_id'];