From f6cc5f19d2d3746a1adae1b3f7cd4e784127f02c Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 4 Nov 2007 16:16:55 +0000 Subject: fixed catalog_update bin file and fixed a conf() reference on update all on admin catalog stuff --- bin/catalog_update.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/catalog_update.inc') diff --git a/bin/catalog_update.inc b/bin/catalog_update.inc index f081b98b..9d69dfa5 100644 --- a/bin/catalog_update.inc +++ b/bin/catalog_update.inc @@ -30,16 +30,16 @@ echo "[catalog_update.php.inc]\nStarting Catalog Clean/Update And Add\n\n"; if (count($_SERVER['argv']) > 1) { for ($x = 1; $x < count($_SERVER['argv']); $x++) { if ($where) $where .= " OR "; - $where .= "name LIKE '%" . preg_replace("/[^a-z0-9\. -]/i", "", $_SERVER['argv'][$x]) . "%'"; + $where .= "name LIKE '%" . Dba::escape(preg_replace("/[^a-z0-9\. -]/i", "", $_SERVER['argv'][$x])) . "%'"; } } if ($where) $where = "($where) AND catalog_type='local'"; else $where = "catalog_type='local'"; $sql = "SELECT id FROM catalog"; if ($where) $sql .= " WHERE $where"; -$db_results = mysql_query($sql, dbh()); +$db_results = Dba::query($sql); -while ($r = mysql_fetch_row($db_results)) { +while ($r = Dba::fetch_row($db_results)) { $catalog = new Catalog($r[0]); -- cgit