Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2Table.php |
— | — | @@ -75,13 +75,13 @@ |
76 | 76 | * Constructor. |
77 | 77 | * |
78 | 78 | * @param string $name |
79 | | - * @param mixed $objectFields Array of string or a single string |
| 79 | + * @param array $objectFields Associative array |
80 | 80 | * @param mixed $indexes Array of string or a single string |
81 | 81 | * @param mixed $fixedProperty string or false |
82 | 82 | */ |
83 | | - public function __construct( $name, $objectFields, $indexes = array(), $fixedProperty = false ) { |
| 83 | + public function __construct( $name, array $objectFields, $indexes = array(), $fixedProperty = false ) { |
84 | 84 | $this->name = $name; |
85 | | - $this->objectfields = (array)$objectFields; |
| 85 | + $this->objectfields = $objectFields; |
86 | 86 | $this->fixedproperty = $fixedProperty; |
87 | 87 | $this->indexes = (array) $indexes; |
88 | 88 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php |
— | — | @@ -1911,7 +1911,7 @@ |
1912 | 1912 | } |
1913 | 1913 | } |
1914 | 1914 | |
1915 | | - $propertykey = ( $property->isUserDefined() ) ? $property->getDBkey():$property->getPropertyId(); |
| 1915 | + $propertykey = ( $property->isUserDefined() ) ? $property->getDBkey() : $property->getPropertyId(); |
1916 | 1916 | |
1917 | 1917 | if ( array_key_exists( $propertykey, self::$fixed_prop_tables ) ) { |
1918 | 1918 | $signature = self::getTypeSignature( $property->getPropertyTypeID() ); |