From 32a7ce27396a3a552b6b4dd6bd6403a10d9293f9 Mon Sep 17 00:00:00 2001 From: Justin Brewer Date: Fri, 16 Sep 2011 17:17:37 -0500 Subject: [PATCH] PDO Fix --- contrib/tag_history/main.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/tag_history/main.php b/contrib/tag_history/main.php index 4783fa1c..fc0f43e6 100644 --- a/contrib/tag_history/main.php +++ b/contrib/tag_history/main.php @@ -130,9 +130,9 @@ class Tag_History implements Extension { } // lets get the values out of the result - $stored_result_id = $result->fields['id']; - $stored_image_id = $result->fields['image_id']; - $stored_tags = $result->fields['tags']; + $stored_result_id = $result['id']; + $stored_image_id = $result['image_id']; + $stored_tags = $result['tags']; log_debug("tag_history", "Reverting tags of $stored_image_id to [$stored_tags]"); // all should be ok so we can revert by firing the SetUserTags event. @@ -146,7 +146,7 @@ class Tag_History implements Extension { public function get_tag_history_from_revert($revert_id) { global $database; - $row = $database->execute(" + $row = $database->get_row(" SELECT tag_histories.*, users.name FROM tag_histories JOIN users ON tag_histories.user_id = users.id