Zeile 1574 | Zeile 1574 |
---|
add_breadcrumb($lang->edit_announcement, "modcp.php?action=edit_announcements&aid={$aid}");
// Get announcement
|
add_breadcrumb($lang->edit_announcement, "modcp.php?action=edit_announcements&aid={$aid}");
// Get announcement
|
if(!isset($announcement))
| if(!isset($announcement) || $mybb->request_method != 'post')
|
{ $query = $db->simple_select("announcements", "*", "aid='{$aid}'"); $announcement = $db->fetch_array($query);
| { $query = $db->simple_select("announcements", "*", "aid='{$aid}'"); $announcement = $db->fetch_array($query);
|
Zeile 2723 | Zeile 2723 |
---|
foreach($usertitles as $title) {
|
foreach($usertitles as $title) {
|
if($title['posts'] <= $mybb->user['postnum'])
| if($title['posts'] <= $user['postnum'])
|
{ $defaulttitle = $title['title'];
|
{ $defaulttitle = $title['title'];
|
| break;
|
} } }
| } } }
|
Zeile 2891 | Zeile 2892 |
---|
$val = str_replace("\n", "\\n", $val);
$sel = "";
|
$val = str_replace("\n", "\\n", $val);
$sel = "";
|
if($val == $seloptions[$val])
| if(isset($seloptions[$val]) && $val == $seloptions[$val])
|
{ $sel = " selected=\"selected\""; }
| { $sel = " selected=\"selected\""; }
|
Zeile 2971 | Zeile 2972 |
---|
foreach($expoptions as $key => $val) { $checked = "";
|
foreach($expoptions as $key => $val) { $checked = "";
|
if($val == $seloptions[$val])
| if(isset($seloptions[$val]) && $val == $seloptions[$val])
|
{ $checked = " checked=\"checked\""; }
| { $checked = " checked=\"checked\""; }
|