Fix syntax error.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 16 Sep 2010 11:54:40 +0000 (13:54 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 16 Sep 2010 11:54:40 +0000 (13:54 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
bin/cron/phones.check.php

index c4fbd77..92707ee 100755 (executable)
@@ -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";