Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Dec 18, 2013
1 parent 79d8962 commit bf34a33
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php
Expand Up @@ -406,13 +406,9 @@ public function removePrimaryKey($tableName)
* - name: (string) the index name to fall
* back to if no column names specified.
*/
public function indexName($tableName, $options=array())
public function indexName($tableName, $options = array())
{
$indexName = parent::indexName($tableName, $options);
if (strlen($indexName) > 64) {
$indexName = substr($indexName, 0, 64);
}
return $indexName;
return substr(parent::indexName($tableName, $options), 0, 64);
}

/**
Expand Down

0 comments on commit bf34a33

Please sign in to comment.