From 52795d868e16484fb49f31f492a202f143129494 Mon Sep 17 00:00:00 2001 From: jim-p Date: Sun, 17 Feb 2013 20:22:24 -0500 Subject: Fix whitespace test --- config/systempatches/patches.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/systempatches') diff --git a/config/systempatches/patches.inc b/config/systempatches/patches.inc index d17e3614..89610565 100644 --- a/config/systempatches/patches.inc +++ b/config/systempatches/patches.inc @@ -41,7 +41,7 @@ function patch_commit($patch, $action, $test=false, $fulldetail=false) { $check = ($test) ? "--check" : ""; $force = ($action == "revert") ? "-f" : "-t"; $direction = ($action == "revert") ? "--reverse" : "--forward"; - $whitespace = $patch['ignorewhitespace'] ? "--ignore-whitespace" : ""; + $whitespace = isset($patch['ignorewhitespace']) ? "--ignore-whitespace" : ""; $pathstrip = '-p' . $patch['pathstrip']; $full_patch_command = "{$patch_cmd} --directory={$directory} {$force} {$pathstrip} {$filename} {$check} {$direction} {$whitespace}"; patch_write($patch); -- cgit v1.2.3