]> git.openstreetmap.org Git - nominatim.git/commitdiff
Update DB.php
authort-tomek <t-tomek@users.noreply.github.com>
Wed, 21 Dec 2022 15:32:33 +0000 (16:32 +0100)
committerGitHub <noreply@github.com>
Wed, 21 Dec 2022 15:32:33 +0000 (16:32 +0100)
lib-php/DB.php

index f5fea7f8d8c6eb549f64d3e719cc9621cbc7699a..8b51955d15ba91ecb8ea7d5b29591820511c6f7c 100644 (file)
@@ -57,7 +57,7 @@ class DB
         
         $iMaxExecution = ini_get('max_execution_time');
         if ($iMaxExecution > 0) {
-            $conn->setAttribute(\PDO::ATTR_TIMEOUT, $iMaxExecution); // seconds
+            $this->connection->setAttribute(\PDO::ATTR_TIMEOUT, $iMaxExecution); // seconds
         }
 
         return true;