X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Femails.check.php;h=c9690c9e8f7666717c0d70214d3073722c88828c;hb=5f30b30e8b2657ade5c727e98de286386ee002d8;hp=b07281e856b3074aa80a0c4580a27a39c9897697;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/bin/cron/emails.check.php b/bin/cron/emails.check.php index b07281e..c9690c9 100755 --- a/bin/cron/emails.check.php +++ b/bin/cron/emails.check.php @@ -1,7 +1,7 @@ #!/usr/bin/php5 -q 0) { echo "\n\n"; $sql = "INSERT IGNORE INTO emails_watch (email, state, detection, last) VALUES " . join(", ", $insert); - Xdb::execute($sql); - if (mysql_errno() != 0) { - echo 'Error : ' . mysql_error() . "\n$sql"; + XDB::execute($sql); + if (XDB::errno() != 0) { + echo 'Error : ' . XDB::error() . "\n$sql"; } } @@ -93,4 +93,5 @@ if ($panne_level > 0) { WHERE panne_level > $panne_level"); } +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>