Skip to content

Commit b864227

Browse files
author
Matt Smollinger
committed
Add additional buffering to recreate lost functionality upgrading
from Sqlite2 to Sqlite3 extension.
1 parent 45e1f4b commit b864227

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

util.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ function list_credentials() {
4747

4848
// Must use explicit select instead of * to get the rowid
4949
$query = $db->query('select userid, credentials from credentials');
50-
return $query->fetchArray(SQLITE3_ASSOC);
50+
$result = array();
51+
while ($singleResult = $query->fetchArray(SQLITE3_ASSOC)){
52+
array_push($result,$singleResult);
53+
}
54+
return $result;
5155

5256
}
5357

0 commit comments

Comments
 (0)