X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Femails.check.php;h=c9690c9e8f7666717c0d70214d3073722c88828c;hb=12a587df92f7bc9efeb91c1a2d27f763070b8609;hp=8b372d80ea542c44d794b1e8485c17b4b4fcd835;hpb=d20d604fa15378027f843525dcf30fde27d29d31;p=platal.git diff --git a/bin/cron/emails.check.php b/bin/cron/emails.check.php index 8b372d8..c9690c9 100755 --- a/bin/cron/emails.check.php +++ b/bin/cron/emails.check.php @@ -1,7 +1,7 @@ -#!/usr/bin/php4 -q +#!/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: ?>