Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a little typo on PostgreSQL code

  • Loading branch information...
commit 29622339379d23a345719aaf0b5795d859ca601a 1 parent 203add2
moodler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/datalib.php
View
2  lib/datalib.php
@@ -114,7 +114,7 @@ function table_column($table, $oldfield, $field, $type="integer", $size="10",
case "postgres7": // From Petri Asikainen
//Check db-version
$dbinfo = $db->ServerInfo();
- $dbver = substr($dbinfo[version],0,3);
+ $dbver = substr($dbinfo['version'],0,3);
$field = "$field";
//to prevent conflicts with reserved words
Please sign in to comment.
Something went wrong with that request. Please try again.