1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

Closes #427 - Newsfeed activation value was not being displayed correctly.

This commit is contained in:
Cameron 2013-08-24 07:58:16 -07:00
parent fe4f6d39d1
commit 1d310f5f31

View File

@ -145,7 +145,7 @@ if($action == "edit")
{ {
if($sql->select("newsfeed", "*", "newsfeed_id=$id")) if($sql->select("newsfeed", "*", "newsfeed_id=$id"))
{ {
$row = $sql->db_Fetch(); $row = $sql->fetch();
extract($row); // FIX extract($row); // FIX
list($newsfeed_image, $newsfeed_showmenu, $newsfeed_showmain) = explode("::", $newsfeed_image); list($newsfeed_image, $newsfeed_showmenu, $newsfeed_showmain) = explode("::", $newsfeed_image);
} }
@ -188,7 +188,7 @@ $text = "
<td>"; <td>";
$array = array(NFLAN_13,NFLAN_14,NFLAN_20,NFLAN_21); $array = array(NFLAN_13,NFLAN_14,NFLAN_20,NFLAN_21);
$text .= $text .=
$frm->radio('newsfeed_active', $array, ($newsfeeed_active ? $newsfeeed_active : 0), true, NFLAN_22)." $frm->radio('newsfeed_active', $array, ($newsfeed_active ? $newsfeed_active : 0), true, NFLAN_22)."
</td> </td>
</tr> </tr>
<tr> <tr>