Revert "Initial work on the rewriting of the profile/edit page"
[platal.git] / bin / cron / clean.php
index 7d1f517..ee844fd 100755 (executable)
@@ -24,8 +24,8 @@ require('./connect.db.inc.php');
 
 function query ($sql) {
     XDB::execute($sql);
-    if (mysql_errno() != 0) {
-       echo "error in \"$sql\" :\n", mysql_error(),"\n";
+    if (XDB::errno() != 0) {
+       echo "error in \"$sql\" :\n", XDB::error(), "\n";
     }
 }