1
0
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:
Cameron
2020-12-15 08:59:31 -08:00
parent 44e260b121
commit f80d611202
10 changed files with 378 additions and 256 deletions

View File

@@ -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>

View File

@@ -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';

View File

@@ -470,7 +470,7 @@ class logConsolidate
list($pageName,$tmp) = explode("?",$pageName);
}
if($pageName == "")
if(empty($pageName))
{
$pageName = "index";
}

View File

@@ -1119,7 +1119,7 @@ class siteStats
break;
}
}
if($image == "")
if(empty($image))
{
$image = "unknown.png";
}

View File

@@ -581,7 +581,7 @@ class newsletter
*/
function show_options($action)
{
if ($action == "")
if (empty($action))
{
$action = "main";
}