Avoid some PHP warnings, no functional changes
This commit is contained in:
parent
8a93725d77
commit
1bd85971a4
5 changed files with 14 additions and 10 deletions
|
|
@ -161,7 +161,7 @@ class dba {
|
|||
public function log_index($query) {
|
||||
$a = get_app();
|
||||
|
||||
if ($a->config["system"]["db_log_index"] == "") {
|
||||
if (empty($a->config["system"]["db_log_index"])) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -929,8 +929,8 @@ function zrl($s, $force = false) {
|
|||
* is set to true
|
||||
*/
|
||||
function get_theme_uid() {
|
||||
$uid = (($_REQUEST['puid']) ? intval($_REQUEST['puid']) : 0);
|
||||
if ((local_user()) && ((get_pconfig(local_user(),'system','always_my_theme')) || (! $uid))) {
|
||||
$uid = ((!empty($_REQUEST['puid'])) ? intval($_REQUEST['puid']) : 0);
|
||||
if ((local_user()) && ((get_pconfig(local_user(), 'system', 'always_my_theme')) || (! $uid))) {
|
||||
return local_user();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -562,7 +562,7 @@ function theme_include($file, $root = '') {
|
|||
if ($root !== '' && $root[strlen($root)-1] !== '/') {
|
||||
$root = $root . '/';
|
||||
}
|
||||
$theme_info = $a->theme_info;
|
||||
$theme_info = get_app()->theme_info;
|
||||
if (is_array($theme_info) && array_key_exists('extends',$theme_info)) {
|
||||
$parent = $theme_info['extends'];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue