Skip to content

Commit

Permalink
Merge pull request #5 from syntux/1.3
Browse files Browse the repository at this point in the history
Two small fixes in the sfPropelPlugin for newer PHP versions
  • Loading branch information
linaori committed Oct 7, 2014
2 parents 9c0d67d + 74d3c9d commit 4383564
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function resolveFile(PhingFile $f) {
/* -- most of the following is mapped to the php natives wrapped by FileSystem */

/* -- Attribute accessors -- */
function getBooleanAttributes(&$f) {
function getBooleanAttributes($f) {
//$rv = getBooleanAttributes0($f);
$name = $f->getName();
$hidden = (strlen($name) > 0) && ($name{0} == '.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public function hasSize($sqlType)
*/
public function disconnectedEscapeText($text)
{
if (function_exists('mysql_escape_string')) {
return mysql_escape_string($text);
if (function_exists('mysql_real_escape_string')) {
return mysql_real_escape_string($text);
} else {
return addslashes($text);
}
Expand Down

0 comments on commit 4383564

Please sign in to comment.