summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-rw-r--r--program/include/html.php9
-rw-r--r--program/include/iniset.php2
-rw-r--r--program/include/rcube_charset.php2
-rw-r--r--program/include/rcube_contacts.php2
4 files changed, 6 insertions, 9 deletions
diff --git a/program/include/html.php b/program/include/html.php
index d4c925c54..27da2c340 100644
--- a/program/include/html.php
+++ b/program/include/html.php
@@ -335,10 +335,6 @@ class html_inputfield extends html
if ($attrib['type']) {
$this->type = $attrib['type'];
}
-
- if ($attrib['newline']) {
- $this->newline = true;
- }
}
/**
@@ -381,11 +377,12 @@ class html_passwordfield extends html_inputfield
* @package HTML
*/
-class html_hiddenfield extends html_inputfield
+class html_hiddenfield extends html
{
+ protected $tagname = 'input';
protected $type = 'hidden';
protected $fields_arr = array();
- protected $newline = true;
+ protected $allowed = array('type','name','value','onchange','disabled','readonly');
/**
* Constructor
diff --git a/program/include/iniset.php b/program/include/iniset.php
index 375bdf653..5feca7d9c 100644
--- a/program/include/iniset.php
+++ b/program/include/iniset.php
@@ -68,7 +68,7 @@ if (set_include_path($include_path) === false) {
die("Fatal error: ini_set/set_include_path does not work.");
}
-ini_set('error_reporting', E_ALL&~E_NOTICE);
+ini_set('error_reporting', E_ALL &~ (E_NOTICE | E_STRICT));
// increase maximum execution time for php scripts
// (does not work in safe mode)
diff --git a/program/include/rcube_charset.php b/program/include/rcube_charset.php
index e52e82ec6..7e8fe4997 100644
--- a/program/include/rcube_charset.php
+++ b/program/include/rcube_charset.php
@@ -78,7 +78,7 @@ class rcube_charset
* @param int Level of the error
* @param string Error message
*/
- public function error_handler($errno, $errstr)
+ public static function error_handler($errno, $errstr)
{
throw new ErrorException($errstr, 0, $errno);
}
diff --git a/program/include/rcube_contacts.php b/program/include/rcube_contacts.php
index 11fbde09a..c30751faf 100644
--- a/program/include/rcube_contacts.php
+++ b/program/include/rcube_contacts.php
@@ -883,7 +883,7 @@ class rcube_contacts extends rcube_addressbook
* @param string New name to set for this group
* @return boolean New name on success, false if no data was changed
*/
- function rename_group($gid, $newname)
+ function rename_group($gid, $newname, &$new_gid)
{
// make sure we have a unique name
$name = $this->unique_groupname($newname);