diff --git a/lib/Data/Database.php b/lib/Data/Database.php index 2fe59033..f9e0b8b5 100644 --- a/lib/Data/Database.php +++ b/lib/Data/Database.php @@ -506,7 +506,7 @@ class Database extends AbstractData private function _exec($sql, array $params) { $statement = $this->_db->prepare($sql); - $position = 1; + $position = 1; foreach ($params as &$parameter) { if (is_int($parameter)) { $statement->bindParam($position, $parameter, PDO::PARAM_INT); diff --git a/tst/Data/FilesystemTest.php b/tst/Data/FilesystemTest.php index 1e4f2b93..99966c4c 100644 --- a/tst/Data/FilesystemTest.php +++ b/tst/Data/FilesystemTest.php @@ -141,7 +141,7 @@ class FilesystemTest extends TestCase $commentid = Helper::getCommentId(); $ids = array(); for ($i = 0, $max = 10; $i < $max; ++$i) { - $dataid = Helper::getRandomId(); + $dataid = Helper::getRandomId(); $storagedir = $this->_path . DIRECTORY_SEPARATOR . substr($dataid, 0, 2) . DIRECTORY_SEPARATOR . substr($dataid, 2, 2) . DIRECTORY_SEPARATOR; $ids[$dataid] = $storagedir;