Commit c6faf26a authored by tbrehm's avatar tbrehm
Browse files

Fixed a strict error in listform.inc.php

Fixed the uses function in app.inc.php
parent f88d3fe4
......@@ -67,9 +67,10 @@ class app {
public function uses($classes)
{
$cl = explode(', ',$classes);
$cl = explode(',',$classes);
if(is_array($cl)) {
foreach($cl as $classname){
$classname = trim($classname);
if(!array_key_exists($classname, $this->_loaded_classes)){
require_once($this->_conf['classpath'] . '/'.$classname.'.inc.php');
$this->$classname = new $classname();
......@@ -84,6 +85,7 @@ class app {
$fl = explode(',', $files);
if(is_array($fl)) {
foreach($fl as $file){
$file = trim($file);
include_once($this->_conf['classpath'] . '/'.$file.'.inc.php');
}
}
......
......@@ -181,7 +181,7 @@ class listform {
$table = $this->listDef["table"];
// setze page auf null, wenn in session nicht gesetzt
if($_SESSION["search"][$list_name]["page"] == '') $_SESSION["search"][$list_name]["page"] = 0;
if(!isset($_SESSION["search"][$list_name]["page"]) || $_SESSION["search"][$list_name]["page"] == '') $_SESSION["search"][$list_name]["page"] = 0;
// setze page auf wert der request variablen "page"
if(isset($_REQUEST["page"])) $_SESSION["search"][$list_name]["page"] = $_REQUEST["page"];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment