Commit 4f565757 authored by Alain Vagner's avatar Alain Vagner

oops

parent 13648dee
......@@ -35,8 +35,8 @@ class ServiceEnumerator
*/
public static function listDefinedResources() {
$prefix = null;
if (defined('RESOURCES_NS')) {
$prefix = null;
if ((strlen(RESOURCES_NS)>= 2) && (substr(RESOURCES_NS, -2, 2) != '::')) {
$pos = strpos(RESOURCES_NS, '::');
if ($pos !== false) {
......@@ -59,7 +59,7 @@ class ServiceEnumerator
$filename = $file->getFileName();
$matches = array();
$regex = '';
if ($prefix) {
if ($prefix !== null) {
$regex = '/'.$prefix.'(.*)\.class\.php$/';
} else {
$regex = '/(.*)\.class\.php$/';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment