opnsense-ports/net/phpldapadmin/files/patch-htdocs_add__oclass__form.php
Franco Fichtner 792de5bda9 */*: sync with upstream
Taken from: FreeBSD
2022-12-06 09:38:46 +01:00

11 lines
438 B
PHP

--- htdocs/add_oclass_form.php.orig 2021-12-12 02:35:51 UTC
+++ htdocs/add_oclass_form.php
@@ -36,7 +36,7 @@ $ldap['attrs']['must'] = array();
foreach ($request['template']->getAttribute('objectclass')->getValues() as $oclass_name) {
# Exclude "top" if its there.
- if (! strcasecmp('top',$oclass_name))
+ if (! strcasecmp('top',(string) $oclass_name))
continue;
if ($soc = $app['server']->getSchemaObjectClass($oclass_name))