Merge branch 'platal-0.9.17'
[platal.git] / bin / cron / clean.php
index 7d1f517..9cbc702 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/php5 -q
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -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";
     }
 }