mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-08 14:30:05 +01:00
fix some of the filesystem checks were not working (executing their SQL queries)
This commit is contained in:
parent
6a5697eab8
commit
bb93cd205c
@ -264,7 +264,8 @@ class Utils extends StreamWrapper
|
|||||||
do {
|
do {
|
||||||
$num = 0;
|
$num = 0;
|
||||||
$select_stmt->bindValue(':offset', $offset, PDO::PARAM_INT);
|
$select_stmt->bindValue(':offset', $offset, PDO::PARAM_INT);
|
||||||
foreach($select_stmt->execute() as $row)
|
$select_stmt->execute();
|
||||||
|
foreach($select_stmt as $row)
|
||||||
{
|
{
|
||||||
++$num;
|
++$num;
|
||||||
if (!file_exists($phy_path=self::_fs_path($row['fs_id'])))
|
if (!file_exists($phy_path=self::_fs_path($row['fs_id'])))
|
||||||
@ -340,7 +341,8 @@ class Utils extends StreamWrapper
|
|||||||
{
|
{
|
||||||
$num = 0;
|
$num = 0;
|
||||||
$stmt->bindValue(':offset', $offset, PDO::PARAM_INT);
|
$stmt->bindValue(':offset', $offset, PDO::PARAM_INT);
|
||||||
foreach ($stmt->execute() as $row)
|
$stmt->execute();
|
||||||
|
foreach ($stmt as $row)
|
||||||
{
|
{
|
||||||
++$num;
|
++$num;
|
||||||
if ($check_only)
|
if ($check_only)
|
||||||
|
Loading…
Reference in New Issue
Block a user