Skip to content

Commit afff469

Browse files
Update folder_create_modal.php
$folder['folder_name']; did not exist in the scope of where folder_create_modal.php was being required in the client_files.php and client_documents.php leading to null array pointer exception. While dirty the new way will reliably retrieve the name of the current folder the user is browsing to correctly name the modal.
1 parent a1831c7 commit afff469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modals/folder_create_modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="modal-dialog">
33
<div class="modal-content bg-dark">
44
<div class="modal-header">
5-
<h5 class="modal-title"><i class="fa fa-fw fa-folder-plus mr-2"></i>Creating folder in <strong><?php if($get_folder_id > 0) { echo $folder['folder_name']; } else { echo "/"; } ?></strong></h5>
5+
<h5 class="modal-title"><i class="fa fa-fw fa-folder-plus mr-2"></i>Creating folder in <strong><?php if($get_folder_id > 0) { echo $folder_path[count($folder_path)-1]['folder_name']; } else { echo "/"; } ?></strong></h5>
66
<button type="button" class="close text-white" data-dismiss="modal">
77
<span>&times;</span>
88
</button>

0 commit comments

Comments
 (0)