Index: branches/unlabeled/unlabeled-1.1.2/category_update.php =================================================================== diff -u -r4123 -r4125 --- branches/unlabeled/unlabeled-1.1.2/category_update.php (.../category_update.php) (revision 4123) +++ branches/unlabeled/unlabeled-1.1.2/category_update.php (.../category_update.php) (revision 4125) @@ -23,7 +23,7 @@ $product_list->addFilter('category_filter', TABLE_PREFIX.'CategoryItems.CategoryId = '.$category_data['CategoryId'] ); $product_list->Query(true); $product_list->GoFirst(); - + $image = $product_list->GetDBField('LocalPath'); if($image) { @@ -38,12 +38,12 @@ SET LocalImage = '.$conn->qstr($image).' WHERE ImageId = '.$image_id; } - else + else { $sql = 'INSERT INTO '.$application->getUnitOption('catimg', 'TableName').' - VALUES (\'\', '.$category_data['ResourceId'].', \'\', \'Main\', \'Main\', 1, 1, '.$conn->qstr($image).', 1, 1, \'\', 0, '.$conn->qstr($image).', 1, 0)'; + VALUES (\'\', '.$category_data['ResourceId'].', \'\', \'Main\', \'Main\', 1, 1, '.$conn->qstr($image).', 1, 1, \'\', 0, \'\', 1, 0)'; } - + $conn->ChangeQuery($sql); } } @@ -59,9 +59,9 @@ //print_pre(get_included_files()); -function getmicrotime() -{ - list($usec, $sec) = explode(" ", microtime()); - return ((float)$usec + (float)$sec); -} +function getmicrotime() +{ + list($usec, $sec) = explode(" ", microtime()); + return ((float)$usec + (float)$sec); +} ?> \ No newline at end of file