mirror of
https://github.com/e107inc/e107.git
synced 2025-08-25 23:36:29 +02:00
Bbcode code optimization and test.
This commit is contained in:
@@ -1422,7 +1422,7 @@ $columnInfo = array(
|
||||
</tr>";
|
||||
} // End of mirror-related stuff
|
||||
|
||||
$download_author = $subAction != "edit" && $download_author == "" ? USERNAME : $download_author;//TODO what if editing an no author specified
|
||||
$download_author = ($subAction !== "edit" && empty($download_author)) ? USERNAME : $download_author;//TODO what if editing an no author specified
|
||||
$download_author_email = $subAction != "edit" && $download_author_email == "" ? USEREMAIL : $download_author_email;
|
||||
$text .= "
|
||||
</table>
|
||||
|
@@ -1393,7 +1393,7 @@ function admin_config_adminmenu()
|
||||
$tmp = explode(".", e_QUERY);
|
||||
$action = $tmp[0];
|
||||
}
|
||||
if (!isset($action) || ($action == "")) $action = "config";
|
||||
if (empty($action)) $action = "config";
|
||||
|
||||
$var['config']['text'] = ADSTAT_LAN_35;
|
||||
$var['config']['link'] = 'admin_config.php';
|
||||
|
@@ -470,7 +470,7 @@ class logConsolidate
|
||||
list($pageName,$tmp) = explode("?",$pageName);
|
||||
}
|
||||
|
||||
if($pageName == "")
|
||||
if(empty($pageName))
|
||||
{
|
||||
$pageName = "index";
|
||||
}
|
||||
|
@@ -1119,7 +1119,7 @@ class siteStats
|
||||
break;
|
||||
}
|
||||
}
|
||||
if($image == "")
|
||||
if(empty($image))
|
||||
{
|
||||
$image = "unknown.png";
|
||||
}
|
||||
|
@@ -581,7 +581,7 @@ class newsletter
|
||||
*/
|
||||
function show_options($action)
|
||||
{
|
||||
if ($action == "")
|
||||
if (empty($action))
|
||||
{
|
||||
$action = "main";
|
||||
}
|
||||
|
Reference in New Issue
Block a user