Navigation Menu

Skip to content

Commit

Permalink
Allow empty column titles (like before 54591a3)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Jun 24, 2010
1 parent a111fb1 commit dac3a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.php
Expand Up @@ -157,7 +157,7 @@ function _formatData($column, $value, &$R){
* @returns array with key, type, ismulti, title, opt
*/
function _column($col){
preg_match('/^([^_]+)(?:_(.*))?((?<!s)|s)$/', $col, $matches);
preg_match('/^([^_]*)(?:_(.*))?((?<!s)|s)$/', $col, $matches);
$column = array('multi' => ($matches[3] === 's'),
'key' => utf8_strtolower($matches[1]),
'title' => $matches[1],
Expand Down

0 comments on commit dac3a3d

Please sign in to comment.