functions.inc.php
- create_page_browser(): revert r1387 and... - db_query(): ...replace it with the correct fix ;-) (avoid mysqli reconnects) The problem was that db_query() used is_resource() to check if we already have a database connection, but a mysqli connection is an object, not a resource. This resulted in a new database connection for each query. Therefore mysqli "forgot" the value of SET @row before executing the following SELECT query (which used a new mysqli connection). The fix is to also check with is_object() to avoid mysqli reconnects. git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1388 a1433add-5e2c-0410-b055-b7f2511e0802pull/2/head
parent
182c67e1cd
commit
954b18c169
Loading…
Reference in New Issue