Skip to content

Commit 489d941

Browse files
authored
Merge pull request #30 from dunpeal/tv-fix-warnings
fix notice and strict standard warning
2 parents 7a54fbd + 0c0dfe5 commit 489d941

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

builder/builder.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
header("Content-type: text/html; charset=utf-8");
66

77
$resname = "../EMT.php";
8-
$action = $_REQUEST['action'];
8+
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
99
if($action == "")
1010
{
1111
$phpself = $_SERVER['PHP_SELF'];
@@ -102,7 +102,6 @@ function phpfile_read($file, $all = false)
102102
fputs($fp, $s);
103103
}
104104

105-
fprintf($fp, "?>");
106105
fclose($fp);
107106

108107
echo "Сгенерирован скрипт типографа для PHP<br />";

lib/fs.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class FS
44
{
5-
function list_only_files($dir, $template = "")
5+
public static function list_only_files($dir, $template = "")
66
{
77
$list = array();
88
$ddir = $dir;

0 commit comments

Comments
 (0)