X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Fphones.check.php;h=92707ee5a4f8f4aac226e9f3b19ba7a91665ef1c;hb=7a708a96543735332b92c32e4fbd7db4f9840568;hp=c4fbd774b62d1222abc4322e87a648f12a9ef621;hpb=853ff307303faf861396c4e22dbaa56114366751;p=platal.git diff --git a/bin/cron/phones.check.php b/bin/cron/phones.check.php index c4fbd77..92707ee 100755 --- a/bin/cron/phones.check.php +++ b/bin/cron/phones.check.php @@ -75,7 +75,7 @@ foreach ($prefixes as $i => $prefix) { $values = ''; $i = 0; while ($phone = $res->next()) { - $phone = new Phone('display' => $phone['display_tel']); + $phone = new Phone(array('display' => $phone['display_tel'])); $phone->format(array('format' => $format, 'phoneprf' => $prefix)); if ($values != '') { $values .= ",\n";