Quellcode durchsuchen

Update 'src/ORM/DBInstance.php'

ahwelp vor 6 Jahren
Ursprung
Commit
f2eac27b98
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      src/ORM/DBInstance.php

+ 2 - 0
src/ORM/DBInstance.php

@@ -5,6 +5,8 @@ namespace ORM;
 class DBInstance {
 
     private static function addPrefix($sql, $instance = 'default'){
+      	$con = Connections::getConnection($instance);
+      	
       	//Where is preg_replace when we need it D`:
       	$sql = str_replace("\n", "", $sql);
 		while(strpos($sql, "  ") > -1){