Skip to content

Update index.php#1

Open
Bamdad-Kr wants to merge 3 commits intoeyedean:masterfrom
Bamdad-Kr:Bamdad-Kr-patch-1
Open

Update index.php#1
Bamdad-Kr wants to merge 3 commits intoeyedean:masterfrom
Bamdad-Kr:Bamdad-Kr-patch-1

Conversation

@Bamdad-Kr
Copy link
Copy Markdown

Lines 531 to 535 have been edited and debugged.

Lines 531 to 535 have been edited and debugged.
Copy link
Copy Markdown
Owner

@eyedean eyedean left a comment

Choose a reason for hiding this comment

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

I would also recommend picking a better commit and PR title. Thank you @Bamdad-Kr

Comment thread index.php Outdated
Comment thread index.php Outdated
// if (($rate < 1) || ($rate > 5))
// $rating[1] = "0/0";
// if (isset($rating[2]))
// $curLastVisit = $rating;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Why are we commenting these lines out? 🤔

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I wanted to avoid losing the original version of this piece. However, I realized that I could review the previous versions, so I removed the comments.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

It seems like you removed those lines instead of un-commenting them (to become like the original version).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

That's right. I'm sorry for the mistake.

+An indentation was added in line 534.
Comment thread index.php Outdated
if (isset($rating[2]))
$curLastVisit = $rating;

//secondary version:
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I am not sure if this comment serves any purpose.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

You're right. I've removed it.

Comment thread index.php
if (($rate < 1) || ($rate > 5))
$rating[1] = "0/0";
if (isset($rating[2]))
$curLastVisit = $rating;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I am not sure why these two ifs are removed.

The second (which sets $curLastVisit) is weird. But the first one has been there to correct any incorrect rating.

Is there any special reason that they are removed?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I reversed them.

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.

2 participants