Skip to content

Fixes #3749 - #3751

Merged
Oldiesmann merged 2 commits into
SimpleMachines:release-2.1from
Sesquipedalian:cal_fix1
Dec 29, 2016
Merged

Oldiesmann merged 2 commits into
SimpleMachines:release-2.1from
Sesquipedalian:cal_fix1

Conversation

@Sesquipedalian

@Sesquipedalian Sesquipedalian commented Dec 28, 2016

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Jon Stovell <jonstovell@gmail.com>
@frandominguezl

Copy link
Copy Markdown
Member

Again, when entering "Post Event" got 2 errors:

    1. array_multisort(): Argument Few minor bug fixes #1 is expected to be an array or a sort flag
      Sources/Subs.php
      Line 5035
    1. Only variables should be passed by reference
      Sources/Subs.php
      Line 5030

No more errors after publishing the Event

@Sesquipedalian

Sesquipedalian commented Dec 28, 2016

Copy link
Copy Markdown
Member Author

That's after you changed the following?

Subs.php, line 5030:

		$zones[$tzkey]['locations'][] = str_replace(array('St_', '_'), array('St. ', ' '), array_pop(explode('/', $tzid)));

to

		$tzlocation = array_pop(explode('/', $tzid));
		$zones[$tzkey]['locations'][] = str_replace(array('St_', '_'), array('St. ', ' '), $tzlocation);

I ask because once that change has been made, the array_mulitsort() gets bumped down from line 5035 to line 5036.

@frandominguezl

Copy link
Copy Markdown
Member

Yes

@Sesquipedalian

Copy link
Copy Markdown
Member Author

But once that change has been made, the error message about array_multisort() should mention line 5036, not line 5035.

@Sesquipedalian

Copy link
Copy Markdown
Member Author

screen shot 2016-12-28 at 4 59 06 am

@frandominguezl

Copy link
Copy Markdown
Member

My bad, I accidentally removed line 5032.

Now the error is in line 5036.

@Sesquipedalian

Copy link
Copy Markdown
Member Author

Okay, that makes more sense. If line 5032 was missing, then array_multisort would definitely complain, since $offsets would be empty.

@frandominguezl

frandominguezl commented Dec 28, 2016

Copy link
Copy Markdown
Member

Okay, @Sesquipedalian my fault again, I wrote $offset instead of $offsets (heh)

Now that error is gone, but this one is still happening: "Only variables should be passed by reference" Subs.php Line 5030

Signed-off-by: Jon Stovell <jonstovell@gmail.com>
@frandominguezl

Copy link
Copy Markdown
Member

Done, great job 👍

@Sesquipedalian

Sesquipedalian commented Dec 28, 2016

Copy link
Copy Markdown
Member Author

Now that error is gone, but this one is still happening: "Only variables should be passed by reference" Subs.php Line 5030

That's because I moved the entire array_pop(explode('/', $tzid)) when I meant to only move the explode('/', $tzid) part. Should be properly fixed as of the latest commit. :)

EDIT: Ninja'd

@frandominguezl frandominguezl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@frandominguezl

Copy link
Copy Markdown
Member

Alright, just a question. When I enter to Post Event and check the "All Day" box everything is fine, but after clicking "Post", it redirects me to the board where I want to publish the event and the "All Day" box is unchecked. Is this the expected behaviour? Or it should remain checked?

@Sesquipedalian

Copy link
Copy Markdown
Member Author

That's an oversight. It can probably be fixed fairly easily. Please file a new bug report for it.

@Oldiesmann
Oldiesmann merged commit 22b3cf2 into SimpleMachines:release-2.1 Dec 29, 2016
@Sesquipedalian
Sesquipedalian deleted the cal_fix1 branch December 29, 2016 05:18
@pr-triage pr-triage Bot added the PR: merged label Jul 3, 2021
@jdarwood007 jdarwood007 added this to the 2.1 RC4 milestone Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants