Пропажа кода в foreach

Issue #43 new
sidxx55 created an issue

Димин класс (конец деш/файла)

        foreach ((array) $_relative_paths as $_plugin_dir) {
                $_plugin_filepath = $_plugin_dir . DIRECTORY_SEPARATOR . $_plugin_filename;
                $_params = array('file_path' => $_plugin_filepath);
                require_once(SMARTY_CORE_DIR . 'core.get_include_path.php');
                if (!(smarty_core_get_include_path($_params, $smarty))) {
                    continue;
                }

                $_return = $_params['new_file_path'];
                break;
            }

последняя версия класса

foreach ((array) $_relative_paths as $_plugin_dir) {

Notice: Undefined index:  in C:\xcache54\Decompiler.class.php on line 2146
                $_return = $_params["new_file_path"];
                break;

еще...

foreach ($_open_basedirs as $_open_basedir) {
                    if (!(substr($_new_dir, 0, strlen($_open_basedir)) == $_open_basedir)) {
                        continue;
                    }
                    $_make_new_dir = true;
                    break;
                }
foreach ($_open_basedirs as  ) {

Notice: Undefined index:  in C:\xcache54\Decompiler.class.php on line 2146
                    $_make_new_dir = true;
                    break;
                }

Comments (1)

  1. Log in to comment