Skip to content

Commit

Permalink
travis fix
Browse files Browse the repository at this point in the history
fix  comment rules
  • Loading branch information
alikon committed Jun 10, 2015
1 parent 9017d71 commit 3ba9e64
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libraries/joomla/database/driver/sqlsrv.php
Expand Up @@ -491,9 +491,11 @@ public function insertObject($table, &$object, $key = null)
{
foreach ($object->getFields() AS $key_field => $value_field)
{
// If is not primary key set defaul value if not exist this value
// for evade error "Cannot insert the value NULL into column 'XXX',
// table 'XXX'; column does not allow nulls.
/**
* If is not primary key set defaul value if not exist this value
* for evade error "Cannot insert the value NULL into column 'XXX',
* table 'XXX'; column does not allow nulls.
*/
if (!in_array($this->quoteName($key_field), $fields) && $value_field->Null == "NO" && ((is_array($key) && !in_array($key_field, $key)) || (!is_array($key) && $key_field != $key)))
{
$fixed = null;
Expand Down

0 comments on commit 3ba9e64

Please sign in to comment.