[APPDB] Update fixNoteLinks

Rosanne DiMesio dimesio at earthlink.net
Sun May 14 20:15:05 CDT 2017


Restores call to query_affected_rows and fixes a typo.

Signed-off-by: Rosanne DiMesio <dimesio at earthlink.net>
---
 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 />";
     
 }
 
-- 
2.12.0




More information about the wine-patches mailing list