[guadec-web] It's a string, not an array
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] It's a string, not an array
- Date: Thu, 24 Jul 2014 23:51:15 +0000 (UTC)
commit 14f1190ebe57250b52de625f998a569a2e588117
Author: Alexandre Franke <alexandre franke gmail com>
Date: Fri Jul 25 01:51:08 2014 +0200
It's a string, not an array
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 8e233fe..b03d5f7 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 (in_array('lunch_saturday', $results['lunchdays']) { echo "✓";}; echo "</td>";
- echo "<td>"; if (in_array('lunch_sunday', $results['lunchdays']) { echo "✓";}; echo "</td>";
- echo "<td>"; if (in_array('lunch_monday', $results['lunchdays']) { echo "✓";}; echo "</td>";
- echo "<td>"; if (in_array('lunch_tuesday', $results['lunchdays']) { echo "✓";}; 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>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]