Permalink
Browse files

fix statement object countability

  • Loading branch information...
1 parent f3c6bed commit a3a55e36fc4a387d5f92a98748b161630a6251ab @mousavian mousavian committed Jan 28, 2016
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/ExpiredFileManager.php
@@ -109,6 +109,12 @@ function getExpiredFileList($until=null)
$stmt->bindValue(':expiredAt', $until, PDO::PARAM_INT);
$stmt->execute();
$stmt->setFetchMode(PDO::FETCH_COLUMN, 0);
- return $stmt;
+ $list = array();
+
+ foreach ($stmt as $file){
+ $list[] = $file;
+ }
+
+ return $list;
}
}

0 comments on commit a3a55e3

Please sign in to comment.