Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodim99 committed Nov 20, 2017
1 parent f96f0cb commit d88a182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cms/include/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
**/

/** Версия */
define('VERSION', '3.38.7');
define('VERSION', '3.38.8');

/** Название продукта */
define('APP_NAME', 'Cetera CMS');
Expand Down
2 changes: 1 addition & 1 deletion cms/include/data_types.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
$f['required'] = (int)$f['required'];
if ($f['type'] == FIELD_ENUM) {
$alias = $application->getConn()->fetchColumn('select alias from types where id=?', array((int)$_REQUEST['type_id']));
$g = $application->getConn()->fetchRow("SHOW COLUMNS FROM $alias LIKE '".$f['name']."'");
$g = $application->getConn()->fetchArray("SHOW COLUMNS FROM $alias LIKE '".$f['name']."'");
$f['len'] = substr($g[1],5,strlen($g[1])-6);
}

Expand Down

0 comments on commit d88a182

Please sign in to comment.