summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-09-09 21:27:27 +0000
committerErmal Luçi <eri@pfsense.org>2009-09-09 21:27:27 +0000
commit32113e06be752ae5c45c659713c93658f60f8504 (patch)
tree163de3976ffd0bfe7c19b6488be52fc66fd23bec /etc/inc/pkg-utils.inc
parent9d3d1ac1c6936ec5646557561b0f7e3cf09c6025 (diff)
downloadpfsense-32113e06be752ae5c45c659713c93658f60f8504.zip
pfsense-32113e06be752ae5c45c659713c93658f60f8504.tar.gz
Use empty() function for testing which is far more better than just <> "".
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 7b45f7d..6938c85 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -316,10 +316,10 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) {
* The code is obviously wrong, but I'm not sure what it's supposed to do?
*/
if(isset($pkg_config['nosync'])) continue;
- if($pkg_config['custom_php_global_functions'] <> "")
- eval($pkg_config['custom_php_global_functions']);
- if($pkg_config['custom_php_resync_config_command'] <> "")
- eval($pkg_config['custom_php_resync_config_command']);
+ if(!empty($pkg_config['custom_php_global_functions']))
+ eval($pkg_config['custom_php_global_functions']);
+ if(!empty($pkg_config['custom_php_resync_config_command']))
+ eval($pkg_config['custom_php_resync_config_command']);
if($sync_depends == true) {
$depends = get_pkg_depends($pkg_name, ".xml", "files", 1); // Call dependency handler and do a little more error checking.
if(is_array($depends)) {
OpenPOWER on IntegriCloud