Editing Talk:WikiDB/Bugs
From TestWiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | I noticed a bug:<br> | |
+ | If the ''criteria'' attribute results in zero rows being returned from ''PerformQuery'', the call to ''NormaliseData'' is resulting in 1 row for each column in the table. After a bit of investigation, it turns out that Normaise is creating an empty array, but with the column names as tags inside the array, causing the loop to loop through the tags, rather than the rows (as would be expected). This is pretty easily fixed. I placed the following at the beginning of ''NormaliseData'', and it fixed the issue for me: | ||
− | Moved to [[WikiDB/Bugs | + | <pre> |
+ | if(!is_array($Data) || count($Data) == 0) | ||
+ | { | ||
+ | return $FormattedData; | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | -[[User:Jacob|Jacob]] 23:22, 8 April 2007 (BST) | ||
+ | |||
+ | : Moved to [[WikiDB/Bugs]]. Check there for resolution. --[[User:HappyDog|HappyDog]] 00:59, 13 July 2007 (BST) | ||
== Error message while trying to create an SMW Property == | == Error message while trying to create an SMW Property == | ||
Moved to [[WikiDB/Bugs#Error message while trying to create an SMW Property]]. | Moved to [[WikiDB/Bugs#Error message while trying to create an SMW Property]]. |