commit 01633c8a72db388ef1eecba70e3efad300db4e16
parent 5e983001c4ef6fd0f978dc3d907633ea72941fa6
Author: Jan Dankert <devnull@localhost>
Date: Wed, 7 Nov 2012 20:28:50 +0100
PHP-Notices vermeiden.
Diffstat:
4 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/action/Action.class.php b/action/Action.class.php
@@ -475,8 +475,6 @@ class Action
// Wir arbeiten im HTML nur noch mit UTF-8.
$charset = 'UTF-8';
- $showDuration = $conf['interface']['show_duration'];
-
$subActionName = $this->subActionName;
$actionName = $this->actionName;
$requestId = $this->getRequestId();
diff --git a/themes/default/css/openrat.css.php b/themes/default/css/openrat.css.php
@@ -1663,7 +1663,7 @@ div#title
body
{
xxxbackground-color:#c9c9c9;
- background-color:<?php echo $_GET['background-color'] ?>;
+ background-color:<?php echo $_GET['title_text_color'] ?>;
}
/* Fenster-Hintergrund */
diff --git a/themes/default/include/html/link.inc.php b/themes/default/include/html/link.inc.php
@@ -19,7 +19,12 @@
#IF-ATTR class#
#ELSE
$attr_class='';
- #END-IF
+ #END-IF
+
+ #IF-ATTR url#
+ #ELSE
+ $attr_url='';
+ #END-IF
#IF-ATTR title#
#ELSE
diff --git a/util/Http.class.php b/util/Http.class.php
@@ -479,14 +479,14 @@ class Http
$types = Http::getAccept();
- if ( $_REQUEST['output']=='json' || sizeof($types)==1 && in_array('application/json',$types) )
+ if ( @$_REQUEST['output']=='json' || sizeof($types)==1 && in_array('application/json',$types) )
{
header('Content-Type: application/json');
require_once( OR_SERVICECLASSES_DIR."JSON.class.".PHP_EXT );
$json = new JSON();
echo $json->encode( array('status'=>$status,'error'=>$text,'description'=>$message,'reason'=>$reason) );
}
- elseif ( $_REQUEST['output']=='xml' || sizeof($types)==1 && in_array('application/xml',$types) )
+ elseif ( @$_REQUEST['output']=='xml' || sizeof($types)==1 && in_array('application/xml',$types) )
{
header('Content-Type: application/xml');
require_once( OR_SERVICECLASSES_DIR."XML.class.".PHP_EXT );