Module: appdb Branch: master Commit: 9ade568cd1289277229d04498c02eee8c2ae8257 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=9ade568cd1289277229d04498...
Author: Rosanne DiMesio dimesio@earthlink.net Date: Sun May 14 20:15:05 2017 -0500
Update fixNoteLinks
Restores call to query_affected_rows and fixes a typo.
Signed-off-by: Rosanne DiMesio dimesio@earthlink.net Signed-off-by: Jeremy Newman jnewman@codeweavers.com
---
admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/admin.php b/admin.php index fe1ccc6..90d1fc8 100644 --- a/admin.php +++ b/admin.php @@ -173,7 +173,7 @@ function fixNoteLinks() echo "<br />$iCount in total<br />";
// Create links for ordinary notes - echo "<br /><br />Creating tags for ordinar notes<br />"; + echo "<br /><br />Creating tags for ordinary notes<br />"; $hResult = query_parameters("SELECT * FROM appNotes WHERE versionId > '0' AND linkedWith = '0'");
$iTagsCreated = 0; @@ -199,7 +199,7 @@ function fixNoteLinks()
echo "<br />Deleting note links<br />"; $hResult = query_parameters("DELETE FROM appNotes WHERE linkedWith != '0'"); - echo "Deleted ".query_num_rows()." links<br />"; + echo "Deleted ".query_affected_rows()." links<br />";
}