fixed SQL error under PostgreSQL with new filesystem check

This commit is contained in:
Ralf Becker 2012-02-29 13:48:58 +00:00
parent f211ce7a16
commit 9696717e37

View File

@ -183,7 +183,7 @@ class sqlfs_utils extends sqlfs_stream_wrapper
$msgs = array();
foreach(self::$pdo->query('SELECT fs.* FROM '.self::TABLE.' fs'.
' LEFT JOIN '.self::TABLE.' dir ON dir.fs_id=fs.fs_dir'.
' WHERE fs.fs_id > 1 && dir.fs_id IS NULL') as $row)
' WHERE fs.fs_id > 1 AND dir.fs_id IS NULL') as $row)
{
if ($check_only)
{