diff --git a/answers_best_answer/answers_best_answer.module b/answers_best_answer/answers_best_answer.module
index e923630..de67469 100644
--- a/answers_best_answer/answers_best_answer.module
+++ b/answers_best_answer/answers_best_answer.module
@@ -390,7 +390,8 @@ function answers_best_answer_views_default_views_alter(&$views) {
     /* Add the sort criteria as the first for the display */
     $handler->display->display_options['sorts'] = array_merge(
       array('timestamp' => $best_answer_sort),
-      $handler->display->display_options['sorts']);
+      isset($handler->display->display_options['sorts'])?$handler->display->display_options['sorts']:array()
+      );
   }
 
   if (array_key_exists('questions', $views)) {
