From c5cb3d2f899b52f286f326f46f09039ce4bb1f9f Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Wed, 2 Mar 2022 22:02:01 +0100 Subject: [PATCH] syntax errors --- phototrack/phototrack.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phototrack/phototrack.php b/phototrack/phototrack.php index 82b4bfd3..e9f0a7cd 100644 --- a/phototrack/phototrack.php +++ b/phototrack/phototrack.php @@ -93,9 +93,9 @@ function phototrack_photo_use($photo, $table, $field, $id) { return; } $rid = $r['resource-id']; - $existing = DBA::selectFirst('phototrack_photo_use', ['id'], ['resource-id' => $rid, 'table' => $table, 'field' => $field, 'row-id' = $id]); + $existing = DBA::selectFirst('phototrack_photo_use', ['id'], ['resource-id' => $rid, 'table' => $table, 'field' => $field, 'row-id' => $id]); if (DBA::isResult($existing)) { - DBA::update('phototrack_photo_use', ['checked' => DateTimeFormat::utcNow()], ['resource-id' => $rid, 'table' => $table, 'field' => $field, 'row-id' = $id]); + DBA::update('phototrack_photo_use', ['checked' => DateTimeFormat::utcNow()], ['resource-id' => $rid, 'table' => $table, 'field' => $field, 'row-id' => $id]); } else { DBA::insert('phototrack_photo_use', ['resource-id' => $rid, 'table' => $table, 'field' => $field, 'row-id' = $id, 'checked' => DateTimeFormat::utcNow()]);