diff --git a/views_nivo_slider.module b/views_nivo_slider.module
index 9b076cb..bac52a1 100644
--- a/views_nivo_slider.module
+++ b/views_nivo_slider.module
@@ -263,7 +263,7 @@ function views_nivo_slider_list_themes() {
   if (module_exists('libraries')) {
     $dir = libraries_get_path('nivo-slider') . '/themes';
     if (!empty($dir) && $dir != NULL) {
-      if ($handle = opendir($dir)) {
+      if ($handle = @opendir($dir)) {
         while (FALSE !== ($filename = readdir($handle))) {
           if ($filename[0] != '.') {
             $uri = "$dir/$filename";
