bug 1138: properly display announcement settings on account history
authorMichael Tänzer <neo@nhng.de>
Fri, 11 Apr 2014 20:11:43 +0000 (22:11 +0200)
committerMichael Tänzer <neo@nhng.de>
Fri, 11 Apr 2014 20:11:43 +0000 (22:11 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
pages/account/59.php

index b4ec324..46e96be 100644 (file)
@@ -132,15 +132,15 @@ if ($userid != $_SESSION['profile']['id']) {
     </tr>
     <tr>
           <td class="DataTD"><?=_("Country Announcements")?>:</td>
-          <td class="DataTD"><?= ($row['id']==0)? _('No'):_('Yes')?></td>
+          <td class="DataTD"><?= ($alerts['country']==0)? _('No'):_('Yes')?></td>
     </tr>
     <tr>
         <td class="DataTD"><?=_("Regional Announcements")?>:</td>
-        <td class="DataTD"><?= ($row['id']==0)? _('No'):_('Yes')?></td>
+        <td class="DataTD"><?= ($alerts['regional']==0)? _('No'):_('Yes')?></td>
     </tr>
     <tr>
         <td class="DataTD"><?=_("Within 200km Announcements")?>:</td>
-        <td class="DataTD"><?= ($row['id']==0)? _('No'):_('Yes')?></td>
+        <td class="DataTD"><?= ($alerts['radius']==0)? _('No'):_('Yes')?></td>
     </tr>
 </table>
 <br/>