* Fixed REG_BADRPT error in isValidEmail() that prevented registration
[scuttle] / services / bookmarkservice.php
index afc717973c664e67b917f3286109d3fbce049217..9159f975ffb289a8a3c427ecd359e102234b0311 100644 (file)
@@ -180,8 +180,7 @@ class BookmarkService {
         $updates = array('bModified' => $moddatetime, 'bTitle' => $title, 'bAddress' => $address, 'bDescription' => $description, 'bStatus' => $status, 'bHash' => md5($address));
 
         if (!is_null($date)) {
-            $datetime = gmdate('Y-m-d H:i:s', strtotime($date));
-            $updates[] = array('bDateTime' => $datetime);
+            $updates['bDateTime'] = gmdate('Y-m-d H:i:s', strtotime($date));
         }
 
         $sql = 'UPDATE '. $GLOBALS['tableprefix'] .'bookmarks SET '. $this->db->sql_build_array('UPDATE', $updates) .' WHERE bId = '. intval($bId);

Benjamin Mako Hill || Want to submit a patch?