Browse Source

[PropelBundle] fixed generation of propel_autoload.php

Fabien Potencier 15 năm trước cách đây
mục cha
commit
13839f23ce
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      src/Symfony/Framework/PropelBundle/Bundle.php

+ 1 - 3
src/Symfony/Framework/PropelBundle/Bundle.php

@@ -31,9 +31,7 @@ class Bundle extends BaseBundle
                 }
             }
 
-            if ($map) {
-                file_put_contents($autoload, '<?php return '.var_export($map, true).';');
-            }
+            file_put_contents($autoload, '<?php return '.var_export($map, true).';');
         }
 
         $autoloader = \PropelAutoloader::getInstance();