diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-10-02 21:33:10 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-10-02 21:33:10 +0000 |
commit | f7e9bab197205e6fa0d2e220902f5eb6573ac1cb (patch) | |
tree | b6c70188c6818199091b340091b9e92e27b233ac /includes | |
parent | 23205823e0ca55b4326b1de22e70c9bbfcf472d5 (diff) | |
download | brdo-f7e9bab197205e6fa0d2e220902f5eb6573ac1cb.tar.gz brdo-f7e9bab197205e6fa0d2e220902f5eb6573ac1cb.tar.bz2 |
- tidied up some "$status"-es and removed "$rstatus".
Diffstat (limited to 'includes')
-rw-r--r-- | includes/node.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/node.inc b/includes/node.inc index b820511a9..67c8a51f0 100644 --- a/includes/node.inc +++ b/includes/node.inc @@ -1,7 +1,6 @@ <?php $status = array(dumped => 0, expired => 1, queued => 2, posted => 3); -$rstatus = array(0 => dumped, 1 => expired, 2 => queued, 3 => posted); function _node_get($conditions) { foreach ($conditions as $key=>$value) { @@ -164,7 +163,9 @@ function node_form($node) { } function node_status($value) { - $status = array(dumped, expired, queued, posted); + + $status = array("dumped", "expired", "queued", "posted"); + if (module_exist($value)) { return array_intersect($status, node_invoke($value, "status")); } |