summaryrefslogtreecommitdiff
path: root/code/admin/utils.php
diff options
context:
space:
mode:
Diffstat (limited to 'code/admin/utils.php')
-rw-r--r--code/admin/utils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/admin/utils.php b/code/admin/utils.php
index 9612535..4db2d2d 100644
--- a/code/admin/utils.php
+++ b/code/admin/utils.php
@@ -77,8 +77,8 @@
function is_ress($kind, $path) {
switch ($kind) {
- case 'page': return is_file($path.'/props.ini');
- case 'media': return substr($path, -4)=='.jpg' && is_file($path);
+ case 'page': return ( is_dir($path) && is_file($path.'/props.ini') );
+ case 'media': return ( substr($path, -4)=='.jpg' && is_file($path) );
default : return FALSE;
}
}