forked from extern/egroupware
fix SQLSTATE[42000]: Syntax error or access violation in filemanager
caused by not correctly quoted empty string instead of id in extended ACL
This commit is contained in:
parent
83417962e9
commit
1d826e798a
@ -1625,7 +1625,7 @@ GROUP BY A.fs_id';
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// now search via the database
|
// now search via the database
|
||||||
if (count($ids) > 1) array_map(function(&$v) { $v = (int)$v; },$ids);
|
if (count($ids) > 1) $ids = array_map(function($v) { return (int)$v; }, $ids);
|
||||||
$query = 'SELECT fs_id,fs_dir,fs_name FROM '.self::TABLE.' WHERE fs_id'.
|
$query = 'SELECT fs_id,fs_dir,fs_name FROM '.self::TABLE.' WHERE fs_id'.
|
||||||
(count($ids) == 1 ? '='.(int)$ids[0] : ' IN ('.implode(',',$ids).')');
|
(count($ids) == 1 ? '='.(int)$ids[0] : ' IN ('.implode(',',$ids).')');
|
||||||
if (self::LOG_LEVEL > 2) $query = '/* '.__METHOD__.': '.__LINE__.' */ '.$query;
|
if (self::LOG_LEVEL > 2) $query = '/* '.__METHOD__.': '.__LINE__.' */ '.$query;
|
||||||
@ -1913,7 +1913,7 @@ GROUP BY A.fs_id';
|
|||||||
$id = $stat['ino'];
|
$id = $stat['ino'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (count($ids) >= 1) array_map(function(&$v) { $v = (int)$v; },$ids);
|
if (count($ids) >= 1) $ids = array_map(function($v) { return (int)$v; }, $ids);
|
||||||
$query = 'SELECT * FROM '.self::PROPS_TABLE.' WHERE (fs_id'.
|
$query = 'SELECT * FROM '.self::PROPS_TABLE.' WHERE (fs_id'.
|
||||||
(count($ids) == 1 ? '='.(int)implode('',$ids) : ' IN ('.implode(',',$ids).')').')'.
|
(count($ids) == 1 ? '='.(int)implode('',$ids) : ' IN ('.implode(',',$ids).')').')'.
|
||||||
(!is_null($ns) ? ' AND prop_namespace=?' : '');
|
(!is_null($ns) ? ' AND prop_namespace=?' : '');
|
||||||
|
Loading…
Reference in New Issue
Block a user