Skip to content
Snippets Groups Projects
Commit 3aceb1e9 authored by Martin Haase's avatar Martin Haase
Browse files

debug string comparing a class

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@9475 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent a08aaa27
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ class RBAC { ...@@ -37,7 +37,7 @@ class RBAC {
$xpath->registerNamespace("c", "http://textgrid.info/namespaces/middleware/tgwebauth"); $xpath->registerNamespace("c", "http://textgrid.info/namespaces/middleware/tgwebauth");
$this->rbacbase = $xpath->query("/c:conf/c:authz[@instance='${authZinstance}']/c:rbacbase")->item(0)->nodeValue; $this->rbacbase = $xpath->query("/c:conf/c:authz[@instance='${authZinstance}']/c:rbacbase")->item(0)->nodeValue;
if ($this->rbacbase->length == 0) { if (!isset ($this->rbacbase) || strlen($this->rbacbase) == 0) {
echo "Error: '${authZinstance}' has no RBAC base configured!<br/>\n"; echo "Error: '${authZinstance}' has no RBAC base configured!<br/>\n";
return null; return null;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment