Skip to content

Commit

Permalink
Fixes PHP 5.4 Strict errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ioguix committed Nov 4, 2012
1 parent 5804ccf commit 9b19f9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion classes/database/Connection.php
Expand Up @@ -20,7 +20,7 @@ class Connection {
* @param $fetchMode Defaults to associative. Override for different behaviour * @param $fetchMode Defaults to associative. Override for different behaviour
*/ */
function Connection($host, $port, $sslmode, $user, $password, $database, $fetchMode = ADODB_FETCH_ASSOC) { function Connection($host, $port, $sslmode, $user, $password, $database, $fetchMode = ADODB_FETCH_ASSOC) {
$this->conn = &ADONewConnection('postgres7'); $this->conn = ADONewConnection('postgres7');
$this->conn->setFetchMode($fetchMode); $this->conn->setFetchMode($fetchMode);


// Ignore host if null // Ignore host if null
Expand Down
14 changes: 8 additions & 6 deletions redirect.php
Expand Up @@ -10,17 +10,19 @@


// Load query vars into superglobal arrays // Load query vars into superglobal arrays
if (isset($url['urlvars'])) { if (isset($url['urlvars'])) {
$vars = array(); $urlvars = array();
parse_str(value(url($url['url'], $url['urlvars']), $_REQUEST), $vars);
array_shift($vars); foreach($url['urlvars'] as $k => $urlvar) {
$urlvars[$k] = value($urlvar, $_REQUEST);
}


/* parse_str function is affected by magic_quotes_gpc */ /* parse_str function is affected by magic_quotes_gpc */
if (ini_get('magic_quotes_gpc')) { if (ini_get('magic_quotes_gpc')) {
$misc->stripVar($vars); $misc->stripVar($urlvars);
} }


$_REQUEST = array_merge($_REQUEST, $vars); $_REQUEST = array_merge($_REQUEST, $urlvars);
$_GET = array_merge($_GET, $vars); $_GET = array_merge($_GET, $urlvars);
} }


require $url['url']; require $url['url'];
Expand Down

0 comments on commit 9b19f9c

Please sign in to comment.