summaryrefslogtreecommitdiffstats
path: root/bin/catalog_update.inc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/catalog_update.inc')
-rw-r--r--bin/catalog_update.inc6
1 files changed, 3 insertions, 3 deletions
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]);