fixes PHP 7.3
Dieser Commit ist enthalten in:
Ursprung
7910977447
Commit
5c37b51913
3 geänderte Dateien mit 36 neuen und 10 gelöschten Zeilen
|
@ -70,12 +70,13 @@ class cSession {
|
|||
## call this function to register the things that should become persistent
|
||||
|
||||
function register($things) {
|
||||
$things = explode(",", $things);
|
||||
reset($things);
|
||||
while (list(, $thing) = each($things)) {
|
||||
$thing = trim($thing);
|
||||
if ($thing) {
|
||||
$this->pt[$thing] = true;
|
||||
$arr_things = explode(",", $things);
|
||||
reset($arr_things);
|
||||
//while (list(, $thing) = each($arr_things)) {
|
||||
foreach($arr_things as $thing) {
|
||||
$str_thing = trim($thing);
|
||||
if ($str_thing) {
|
||||
$this->pt[$str_thing] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -295,6 +296,7 @@ class cSession {
|
|||
switch ($t) {
|
||||
|
||||
case "array":
|
||||
/*
|
||||
## $$var is an array. Enumerate the elements and serialize them.
|
||||
eval("reset(\$$var); \$l = gettype(list(\$k)=each(\$$var));");
|
||||
$str .= "\$$var = array(); ";
|
||||
|
@ -303,6 +305,15 @@ class cSession {
|
|||
$this->serialize($var . "['" . preg_replace("/([\\'])/", "\\\\1", $k) . "']", $str);
|
||||
eval("\$l = gettype(list(\$k)=each(\$$var));");
|
||||
}
|
||||
|
||||
*/
|
||||
// $$var is an array. Enumerate the elements and serialize them.
|
||||
$str .= "\$$var = array(); ";
|
||||
eval("\$l = array(); foreach(\$$var as \$k => \$v) {\$l[] = array(\$k,gettype(\$k),\$v);}");
|
||||
foreach ($l as $item) {
|
||||
// Structural recursion
|
||||
$this->serialize($var . "['" . preg_replace("/([\\'])/", "\\\\1", $item[0]) . "']", $str);
|
||||
}
|
||||
|
||||
break;
|
||||
case "object":
|
||||
|
@ -344,12 +355,27 @@ class cSession {
|
|||
$this->serialize("this->pt", $str);
|
||||
|
||||
reset($this->pt);
|
||||
$int_cnt_pt = count($this->pt);
|
||||
|
||||
for($i=0;$i<$int_cnt_pt;$i++) {
|
||||
$thing = trim(key($this->pt));
|
||||
if ($thing && isset($GLOBALS[$thing])) {
|
||||
$this->serialize("GLOBALS['" . $thing . "']", $str);
|
||||
}
|
||||
next($this->pt);
|
||||
}
|
||||
/*
|
||||
reset($this->pt); echo "\n";
|
||||
while (list($thing) = each($this->pt)) {
|
||||
$thing = trim($thing);
|
||||
//foreach($this->pt as $thing) {
|
||||
echo "\n".$thing = trim($thing);
|
||||
if ($thing && isset($GLOBALS[$thing])) {
|
||||
$this->serialize("GLOBALS['" . $thing . "']", $str);
|
||||
}
|
||||
}
|
||||
*
|
||||
*/
|
||||
|
||||
//return;
|
||||
$r = $this->that->ac_store($this->id, $this->name, $str);
|
||||
$this->release_lock();
|
||||
|
|
|
@ -63,11 +63,11 @@ if (isset($_REQUEST["listsubmit"]))
|
|||
class TODOBackendList extends cScrollList
|
||||
{
|
||||
var $statustypes;
|
||||
function TODOBackendList ()
|
||||
function __construct ()
|
||||
{
|
||||
global $todoitems;
|
||||
|
||||
parent::cScrollList();
|
||||
parent::__construct();
|
||||
|
||||
$this->statustypes = $todoitems->getStatusTypes();
|
||||
$this->prioritytypes = $todoitems->getPriorityTypes();
|
||||
|
|
|
@ -358,7 +358,7 @@ function clStatusLine2Array($sLine) {
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo TITLE; ?></title>
|
||||
<title><?php echo CL_BACKUP_VERSION; ?></title>
|
||||
<style type="text/css">
|
||||
body {position: relative; padding-bottom: 3em;}
|
||||
h2, p {margin: 0;}
|
||||
|
|
Laden …
In neuem Issue referenzieren