Will avoid bugs if a previous connection has been created.
git-svn-id: https://code.elgg.org/elgg/trunk@3404
36083f99-b078-4883-b0ff-
0f9b5a30f544
\r
$contents = '';\r
\r
- if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass)) {\r
+ if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass, true)) {\r
\r
\r
$username = $_GET['username'];\r
set_input('size',$size);\r
require_once(dirname(__FILE__).'/icon.php');\r
}\r
-?>
\ No newline at end of file
+?>
$contents = '';\r
if (!isset($viewinput)) $viewinput = $_GET;\r
\r
- if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass)) {\r
+ if ($mysql_dblink = @mysql_connect($CONFIG->dbhost,$CONFIG->dbuser,$CONFIG->dbpass, true)) {\r
\r
$view = $viewinput['view'];\r
$viewtype = $viewinput['viewtype'];\r
echo $chunk; \r
\r
-?>
\ No newline at end of file
+?>