Quellcode durchsuchen

freepbx DB.class fix for php7

Hal De vor 4 Jahren
Ursprung
Commit
8e906662d8
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      filesystem/entrypoint-hooks.sh

+ 1 - 0
filesystem/entrypoint-hooks.sh

@@ -441,6 +441,7 @@ Charset=utf8" > /etc/odbc.ini
   echo "---> FIXME: temporary workarounds for FreePBX broken modules and configs..."
   sed 's/^preload = chan_local.so/;preload = chan_local.so/' -i ${fpbxDirs[ASTETCDIR]}/modules.conf
   sed 's/^enabled =.*/enabled = yes/' -i ${fpbxDirs[ASTETCDIR]}/hep.conf
+  sed 's/!count(\$dsn)/!@count(\$dsn)/' -i ${fpbxDirs[AMPWEBROOT]}/admin/libraries/DB.class.php
 }
 
 cfgService_freepbx_install() {