Fix a couple of notice errors
darcs-hash:20080720023259-533db-6a4e8abb730b2192fcf2887a665dee2e1048529a.gz
This commit is contained in:
parent
85d9cbe165
commit
e59cfea9bc
@ -194,11 +194,11 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=
|
|||||||
common_element_start('div', array('id' => 'wrap'));
|
common_element_start('div', array('id' => 'wrap'));
|
||||||
common_element_start('div', array('id' => 'header'));
|
common_element_start('div', array('id' => 'header'));
|
||||||
common_nav_menu();
|
common_nav_menu();
|
||||||
if ((is_string($config['site']['logo']) && (strlen($config['site']['logo']) > 0))
|
if ((isset($config['site']['logo']) && is_string($config['site']['logo']) && (strlen($config['site']['logo']) > 0))
|
||||||
|| file_exists(theme_file('logo.png')))
|
|| file_exists(theme_file('logo.png')))
|
||||||
{
|
{
|
||||||
common_element_start('a', array('href' => common_local_url('public')));
|
common_element_start('a', array('href' => common_local_url('public')));
|
||||||
common_element('img', array('src' => ($config['site']['logo']) ?
|
common_element('img', array('src' => isset($config['site']['logo']) ?
|
||||||
($config['site']['logo']) : theme_path('logo.png'),
|
($config['site']['logo']) : theme_path('logo.png'),
|
||||||
'alt' => $config['site']['name'],
|
'alt' => $config['site']['name'],
|
||||||
'id' => 'logo'));
|
'id' => 'logo'));
|
||||||
@ -757,7 +757,7 @@ function common_fancy_url($action, $args=NULL) {
|
|||||||
case 'subscribers':
|
case 'subscribers':
|
||||||
case 'all':
|
case 'all':
|
||||||
case 'replies':
|
case 'replies':
|
||||||
if ($args && $args['page']) {
|
if ($args && isset($args['page'])) {
|
||||||
return common_path($args['nickname'].'/'.$action.'?page=' . $args['page']);
|
return common_path($args['nickname'].'/'.$action.'?page=' . $args['page']);
|
||||||
} else {
|
} else {
|
||||||
return common_path($args['nickname'].'/'.$action);
|
return common_path($args['nickname'].'/'.$action);
|
||||||
|
Loading…
Reference in New Issue
Block a user