avoid a warning on opendir
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
function PMA_getDirContent($dir, $expression = '')
|
function PMA_getDirContent($dir, $expression = '')
|
||||||
{
|
{
|
||||||
if ($handle = @opendir($dir)) {
|
if (file_exists($dir) && $handle = @opendir($dir)) {
|
||||||
$result = array();
|
$result = array();
|
||||||
if (substr($dir, -1) != '/') {
|
if (substr($dir, -1) != '/') {
|
||||||
$dir .= '/';
|
$dir .= '/';
|
||||||
|
Reference in New Issue
Block a user