X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Femails.check.php;h=c9690c9e8f7666717c0d70214d3073722c88828c;hb=12a587df92f7bc9efeb91c1a2d27f763070b8609;hp=afb3ed50f124c31a1d2192533c4150b8e42cabf9;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/bin/cron/emails.check.php b/bin/cron/emails.check.php index afb3ed5..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"; } }