From f56c0f85a3972c005d9dd3cf1e81fa44d7e4ac3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 26 Apr 2012 15:42:29 +0200 Subject: [PATCH 1/4] Exclude coding standard data from tarball --- scripts/create-release.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/create-release.sh b/scripts/create-release.sh index 5f229d2bd6..4c9672f1d7 100755 --- a/scripts/create-release.sh +++ b/scripts/create-release.sh @@ -132,6 +132,9 @@ echo "* Removing unneeded files" # if someone runs /test/wui.php and there are test failures rm -rf test +# Remove phpcs coding standard definition +rm -rf PMAStandard + # Testsuite setup rm -f build.xml phpunit.xml.dist From 8f1a74a02159352a14c2cfbe442f5031c7f1b72c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 26 Apr 2012 16:02:38 +0200 Subject: [PATCH 2/4] Check if variable is set (not set in tests) --- libraries/common.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 240b27c12a..007de7d922 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -3316,7 +3316,8 @@ function PMA_ajaxResponse($message, $success = true, $extra_data = array()) */ function PMA_browseUploadFile($max_upload_size) { - if ($GLOBALS['is_upload'] && !empty($GLOBALS['cfg']['UploadDir'])) { + if (isset($GLOBALS['is_upload']) && $GLOBALS['is_upload'] + && !empty($GLOBALS['cfg']['UploadDir'])) { echo '