mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Fix issue processwire/processwire-issues#1061
This commit is contained in:
@@ -1362,12 +1362,12 @@ class PagesEditor extends Wire {
|
|||||||
|
|
||||||
} else if(is_int($time) || ctype_digit($time)) {
|
} else if(is_int($time) || ctype_digit($time)) {
|
||||||
$time = (int) $time;
|
$time = (int) $time;
|
||||||
$sql .= ':time';
|
$sql .= ':time ';
|
||||||
|
|
||||||
} else if(is_string($time)) {
|
} else if(is_string($time)) {
|
||||||
$time = strtotime($time);
|
$time = strtotime($time);
|
||||||
if(!$time) throw new WireException("Unrecognized time format provided to Pages::touch()");
|
if(!$time) throw new WireException("Unrecognized time format provided to Pages::touch()");
|
||||||
$sql .= ':time';
|
$sql .= ':time ';
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql .= 'WHERE id IN(' . implode(',', $ids) . ')';
|
$sql .= 'WHERE id IN(' . implode(',', $ids) . ')';
|
||||||
|
Reference in New Issue
Block a user