
if(!mkdir($npath, $modx->config['new_folder_permissions'])) {
if(!mkdir($npath, octdec($modx->config['new_folder_permissions']))) {
<table class="e2g"><tr></tr></table><table class="e2g"><tr></tr><tr><td>
« MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource: « PHP Parse Error » PHP error debug Error: end() [function.end]: Passed variable is not an array or object Error type/ Nr.: Warning - 2 File: /home/virtwww/w_rodykorolev-ru_7c183dd8/http/manager/includes/document.parser.class.inc.php(769) : eval()'d code Line: 121 Parser timing MySQL: 0.0048 s (4 Requests) PHP: 0.0216 s Total: 0.0264 s
if ($i % $colls == 0) $_e2g['content'] .= '</tr><tr>';
require './assets/modules/easy2/config.easy2gallery.php';
/* addon */
$dir=$e2g['dir'];
$hdl=opendir($dir);
while ($file = readdir($hdl)) if ( ($file!=".")&&($file!="..")&&( is_numeric($file) ) ) $a[]=$file;
closedir($hdl);
$min=min($a);
$max=max($a);
/*
print_r($a);
echo("<br>\$min=$min<br>\$max=$max<br>");
*/
/* end of addon */
/* modified */
// GALLERY ID
if($param==1) $gid = rand($min, $max); elseif ($param==0)
{
$gid = (!empty($gid) && is_numeric($gid)) ? $gid : 1;
$gid = (!empty($_GET['gid']) && is_numeric($_GET['gid'])) ? (int) $_GET['gid'] : $gid;
}
if($gid<0) $gid=$min;
/* end of modified */
Warning: Invalid argument supplied for foreach() in /home/users/s/site/domains/art-of-sherbakov.ru/manager/processors/execute_module.processor.php(98) : eval()'d code on line 1434
В административной панели скрипта появляяется трижды следующая ошибка:
Warning: Invalid argument supplied for foreach() in /home/users/s/site/domains/art-of-sherbakov.ru/manager/processors/execute_module.processor.php(98) : eval()'d code on line 1434
если подскажите что это, буду Вам очень благодарен !