freebsd-ports/net/phpldapadmin/files/patch-htdocs_add__oclass__form.php
Krzysztof fee2b338d2
net/phpldapadmin: fix support for php81+
PR:	266678
Reported by:	Gerard Seibert
Approved by: rene (mentor)
Differential Revision: https://reviews.freebsd.org/D37513
2022-12-01 10:53:34 +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))