1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00
This commit is contained in:
Ryan Cramer
2020-01-13 14:24:44 -05:00
parent abc32780e3
commit 11ed423bca

View File

@@ -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) . ')';