$chkの問題
このコミットが含まれているのは:
コミット
edcaf09dfc
|
@ -528,10 +528,12 @@ class MeetingsController extends Controller {
|
|||
$pdf = base64_decode(substr($r->pdf, strpos($r->pdf, ',') + 1));
|
||||
$update['pdf'] = '/storage/'.$filename;
|
||||
|
||||
if ($chk = Meeting::select('pdf')->where('id', (int)$meeting_id)->first() && strcmp($chk->pdf, $r->pdf) != 0) {
|
||||
if (Storage::disk('public')->exists($chk->pdf)) {
|
||||
if (Storage::disk('public')->get($chk->pdf) != $pdf) {
|
||||
Storage::disk('public')->delete($chk->pdf);
|
||||
if ($chk = Meeting::select('pdf')->where('id', (int)$meeting_id)->first()) {
|
||||
if (strcmp($chk->pdf, $r->pdf) != 0) {
|
||||
if (Storage::disk('public')->exists($chk->pdf)) {
|
||||
if (Storage::disk('public')->get($chk->pdf) != $pdf) {
|
||||
Storage::disk('public')->delete($chk->pdf);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
新しいイシューから参照