This commit is contained in:
Justin Brewer 2011-09-16 17:17:37 -05:00
parent cadb3f08ca
commit 32a7ce2739

View File

@ -130,9 +130,9 @@ class Tag_History implements Extension {
} }
// lets get the values out of the result // lets get the values out of the result
$stored_result_id = $result->fields['id']; $stored_result_id = $result['id'];
$stored_image_id = $result->fields['image_id']; $stored_image_id = $result['image_id'];
$stored_tags = $result->fields['tags']; $stored_tags = $result['tags'];
log_debug("tag_history", "Reverting tags of $stored_image_id to [$stored_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. // 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) public function get_tag_history_from_revert($revert_id)
{ {
global $database; global $database;
$row = $database->execute(" $row = $database->get_row("
SELECT tag_histories.*, users.name SELECT tag_histories.*, users.name
FROM tag_histories FROM tag_histories
JOIN users ON tag_histories.user_id = users.id JOIN users ON tag_histories.user_id = users.id