summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f4d5312)
raw | patch | inline | side by side (parent: f4d5312)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Sep 2007 09:56:05 +0000 (09:56 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 24 Sep 2007 09:56:05 +0000 (09:56 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7387 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_config.inc | patch | blob | history | |
include/functions.inc | patch | blob | history |
index 3fdc372c35b00b032ab4a7b156ccd6c3265fc471..036872656097e5a8e376521e14ff64081267e1d1 100644 (file)
--- a/include/class_config.inc
+++ b/include/class_config.inc
$return= strtoupper($return);
if (is_array($arr)){
foreach ($arr as &$a){
- if (isset($a['CLASS']) && strcasecmp($name, $a['CLASS'])){
+ if (isset($a['CLASS']) && strcasecmp($name, $a['CLASS']) == 0){
return(isset($a[$return])?$a[$return]:"");
} else {
$res= $this->__search ($a, $name, $return);
diff --git a/include/functions.inc b/include/functions.inc
index 425bcaa734b19bcdd46b4b33bdfaa42b3bd2ecc0..8e2de5bdd1d8336863fe4455644a4191f0459c9a 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
}
foreach ($items as $item){
- if (strcasecmp($item, $value)) {
+ if (strcasecmp($item, $value) == 0) {
return (TRUE);
}
}