forked from GNUsocial/gnu-social
Some bug fixes
The $tomod variable wasn't set, and the ColumnDef constructor didn't work without any args. These are fixed.
This commit is contained in:
parent
d103522ff3
commit
544c58d263
@ -284,6 +284,8 @@ class Schema
|
|||||||
|
|
||||||
$same = array_intersect($new, $cur);
|
$same = array_intersect($new, $cur);
|
||||||
|
|
||||||
|
$tomod = array();
|
||||||
|
|
||||||
foreach ($same as $m) {
|
foreach ($same as $m) {
|
||||||
$curCol = $this->_byName($td->columns, $m);
|
$curCol = $this->_byName($td->columns, $m);
|
||||||
$newCol = $this->_byName($columns, $m);
|
$newCol = $this->_byName($columns, $m);
|
||||||
@ -386,8 +388,9 @@ class ColumnDef
|
|||||||
public $default;
|
public $default;
|
||||||
public $extra;
|
public $extra;
|
||||||
|
|
||||||
function __construct($name, $type, $size=null, $nullable=true,
|
function __construct($name=null, $type=null, $size=null,
|
||||||
$key=null, $default=null, $extra=null) {
|
$nullable=true, $key=null, $default=null,
|
||||||
|
$extra=null) {
|
||||||
$this->name = strtolower($name);
|
$this->name = strtolower($name);
|
||||||
$this->type = strtolower($type);
|
$this->type = strtolower($type);
|
||||||
$this->size = $size+0;
|
$this->size = $size+0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user