[guadec-web] Use a fonction that actually exists



commit c1d5cd8e8ffad3c050a31626aa8cb49b905d34ab
Author: Alexandre Franke <alexandre franke gmail com>
Date:   Fri Jul 25 01:55:01 2014 +0200

    Use a fonction that actually exists

 guadec/access-register.php |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/guadec/access-register.php b/guadec/access-register.php
index b03d5f7..486eeb3 100644
--- a/guadec/access-register.php
+++ b/guadec/access-register.php
@@ -192,10 +192,10 @@ function display_lunch($result){
                echo "<tr>";
                echo "<td>"; echo $results['id']; echo "</td>";
                echo "<td>"; echo $results['name']; echo "</td>";
-               echo "<td>"; if ($results['lunchdays'] contains 'saturday') { echo "✓";}; echo "</td>";
-               echo "<td>"; if ($results['lunchdays'] contains 'sunday') { echo "✓";}; echo "</td>";
-               echo "<td>"; if ($results['lunchdays'] contains 'monday') { echo "✓";}; echo "</td>";
-               echo "<td>"; if ($results['lunchdays'] contains 'tuesday') { echo "✓";}; echo "</td>";
+               echo "<td>"; if (strpos($results['lunchdays'], 'saturday') !== false) { echo "✓";}; echo 
"</td>";
+               echo "<td>"; if (strpos($results['lunchdays'], 'sunday') !== false) { echo "✓";}; echo 
"</td>";
+               echo "<td>"; if (strpos($results['lunchdays'], 'monday') !== false) { echo "✓";}; echo 
"</td>";
+               echo "<td>"; if (strpos($results['lunchdays'], 'tuesday') !== false) { echo "✓";}; echo 
"</td>";
                echo "<td>FIXME</td>";
                echo "<td>"; echo $results['payment']; echo "</td>";
                echo "</tr>";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]