Skip to content

Commit

Permalink
Fix after PDO merge
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Jun 2, 2014
1 parent 0724325 commit 12c3dda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions edithtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
*/
function update_access_time($row_edit){
global $xerte_toolkits_site;
return db_query("UPDATE {$xerte_toolkits_site->database_table_prefix}templatedetails SET date_accessed=? WHERE template_id = ?", array(date('Y-m-d'), $row_edit['template_id']));

/* This function is called even if the template is new - in which case it fails as a record doesn't exist */
db_query("UPDATE {$xerte_toolkits_site->database_table_prefix}templatedetails SET date_accessed=? WHERE template_id = ?", array(date('Y-m-d'), $row_edit['template_id']));
return true;
}


Expand Down

0 comments on commit 12c3dda

Please sign in to comment.