update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* Klasa statyczna z funkcjami pomocniczymi
|
||||
@@ -42,7 +42,7 @@ class Utils {
|
||||
print("<table border=1 cellspacing=1 style=\"font-family: Verdana; font-size: 10 pt;\" width=\"100%\">\n");
|
||||
print("<tr><th colspan=2 bgcolor=\"#DDDDDD\">".$array_name."</TR>\n");
|
||||
// for (reset($array_name); (strcmp(($key=key($array_name)) ,"")); next($array_name)){
|
||||
while (list($key, $value) = each($array_name)) {
|
||||
foreach ($array_name as $key => $value) {
|
||||
if (strcmp($key,"GLOBALS") == 0) $user_defined = 0;
|
||||
if ($user_defined == 1) continue;
|
||||
if ((is_array($value) || is_object($value)) && (strcmp($key,"GLOBALS") != 0)) {
|
||||
@@ -739,7 +739,7 @@ class Utils {
|
||||
}
|
||||
|
||||
public static function DisplayBackTrace($backtrace) {
|
||||
$backtrace = array_map(create_function('$a', 'return array($a["line"], $a["file"], $a["function"]);'), $backtrace);
|
||||
$backtrace = array_map(function ($a) { return array($a["line"], $a["file"], $a["function"]); }, $backtrace);
|
||||
var_dump($backtrace);
|
||||
}
|
||||
|
||||
@@ -1466,7 +1466,7 @@ class Utils {
|
||||
$pageNum = $param[ROUTER_PAGE_LABEL];
|
||||
$page = explode('-', $pageNum);
|
||||
|
||||
array_filter($page, create_function('$x', 'if ((int)$x <= 0) { throw new UserException("Strona poza zakresem"); }'));
|
||||
array_filter($page, function ($x) { if ((int)$x <= 0) { throw new UserException("Strona poza zakresem"); } });
|
||||
|
||||
|
||||
if ($smarty != null)
|
||||
|
||||
Reference in New Issue
Block a user