From 9d3d1ac1c6936ec5646557561b0f7e3cf09c6025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Wed, 9 Sep 2009 21:23:38 +0000 Subject: Make checks stronger. --- etc/inc/pkg-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/pkg-utils.inc') diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 38b42c6..7b45f7d 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -298,7 +298,7 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) { $pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui"); /* Bring in package include files */ - if (isset($pkg_config['include_file']) && $pkg_config['include_file'] != "") { + if (!empty($pkg_config['include_file'])) { $include_file = $pkg_config['include_file']; if (file_exists($include_file)) require_once($include_file); -- cgit v1.1