mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/16019] Amend code for the better
PHPBB3-16019
This commit is contained in:
parent
af84fb71e0
commit
6cc16af75f
1 changed files with 6 additions and 3 deletions
|
@ -264,12 +264,15 @@ class acp_styles
|
||||||
FROM ' . STYLES_TABLE . "
|
FROM ' . STYLES_TABLE . "
|
||||||
WHERE style_name = '" . $this->db->sql_escape('prosilver') . "'";
|
WHERE style_name = '" . $this->db->sql_escape('prosilver') . "'";
|
||||||
$result = $this->db->sql_query($sql);
|
$result = $this->db->sql_query($sql);
|
||||||
$prosilver_id = (int) $this->db->sql_fetchrow($result);
|
$prosilver_id = (int) $this->db->sql_fetchfield('style_id');
|
||||||
$this->db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
|
|
||||||
if (in_array($prosilver_id, $ids))
|
if ($prosilver_id)
|
||||||
{
|
{
|
||||||
trigger_error($this->user->lang['UNINSTALL_PROSILVER'] . adm_back_link($this->u_action), E_USER_WARNING);
|
if (in_array($prosilver_id, $ids))
|
||||||
|
{
|
||||||
|
trigger_error($this->user->lang('UNINSTALL_PROSILVER') . adm_back_link($this->u_action), E_USER_WARNING);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if confirmation box was submitted
|
// Check if confirmation box was submitted
|
||||||
|
|
Loading…
Add table
Reference in a new issue